You add two calculation groups to a Power BI Desktop model. The Currency group (precedence = 5) returns dynamic formats by using SELECTEDMEASUREFORMATSTRING(). The Time Intelligence group (precedence = 15) defines items such as YTD that wrap SELECTEDMEASURE() in CALCULATE. A matrix visual shows the explicit measure [Sales], and slicers activate both the USD item from Currency and the YTD item from Time Intelligence. When DAX resolves the measure, which calculation group is evaluated first, and why?
Currency is applied first because calculation groups execute in ascending order of the Precedence value.
Time Intelligence is applied first because calculation groups execute in descending order of the Precedence value.
Currency is applied first because format-string expressions are always processed before value expressions.
The group executed first depends on which slicer the user changed most recently; Precedence is ignored.
DAX orders active calculation groups by their Precedence property and executes them from the highest value to the lowest. Because Time Intelligence has a precedence of 15 and Currency has 5, the engine applies the Time Intelligence calculation item first, which rewrites the measure to return the year-to-date value. After that, the Currency item runs and only adjusts the format string. If the groups were executed in the opposite order, the numeric result could be wrong, because the Currency item would change the measure before the YTD filter was applied. Creation order, slicer interaction order, and whether an item changes value or format have no effect on this sequence-only the integer precedence setting controls it.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is the Precedence property in Power BI calculation groups?
Open an interactive chat with Bash
What does SELECTEDMEASUREFORMATSTRING() do in Power BI?
Open an interactive chat with Bash
How does CALCULATE work with SELECTEDMEASURE() in calculation groups?
Open an interactive chat with Bash
Microsoft Power BI Data Analyst
Model the Data
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .