Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers!
Enter the sweepstakes now!Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.
Hello,
I am transitioning from Tableau to Power BI and am Struggling finding DAX Expressions that allow the rows/columns in a Matrix to adjust based on the parameter selection. In Tableau this was a simple task because I could just write the calculated field below.
Aging Days
if [Aging Parameter] = "DOS Aging" Then [DOS Aging]
elseif [Aging Parameter] = "Denial Aging" then [Denial Aging]
END
Aging Group
CASE [Aging Days]
WHEN "000 - 030" THEN "000 - 090"
WHEN "031 - 060" THEN "000 - 090"
WHEN "061 - 090" THEN "000 - 090"
ELSE "091 +"
END
How can I create a new Column that groups the days based on the Parameter Selection in a Matrix? No Matter which Aging Parameter is selected the Grouping is the same but the Aging Days will vary based on which selection is made (DOS or Denials).
Thank You in advance for your help!
Hi, @EACruz ,
Here's how to achieve dynamic aging groups in Power BI using DAX:
Create a Parameter Table (Disconnected Table) : AgingParameter = DATATABLE("Aging Selection", STRING, { "DOS Aging", "Denial Aging" })
Use in Matrix Visual
Hi @rohit1991 ,
I appreciate the detailed explanation! I was able to reacreate all of the Fields as you mentioned above.
The only challenge with 'Aging Days' is that if we use the SELECTEDVALUE function then we are expecting to see One Distinct Value but as shown below 'DOS Aging' and 'Denial Aging' has a list of Values. I wanted to use it as a Dimension to toggle between one and the other without the addition of another Parameter. In other words, 'Aging Selection' should allow me to switch between 'DOS Aging' and 'Denial Aging' Dimensions.
read about Field Parameters, that's the closest you can get to that.
Use report readers to change visuals (preview) - Power BI | Microsoft Learn
Check out the April 2025 Power BI update to learn about new features.
Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.
User | Count |
---|---|
17 | |
15 | |
13 | |
10 | |
10 |
User | Count |
---|---|
12 | |
10 | |
6 | |
6 | |
5 |