Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.
Hi PBI,
I have a requirement to change the calculations on a Table like (YTD/ QTD/MTD) based on Selections on a Filter. I came across this DAX function SELECTEDMEASURE which would be used for that in this below Article.
https://www.sqlbi.com/articles/introducing-calculation-groups/
I have currently imported all the Data into my Power BI Model and have not used an Analysis Services Instance connections for Data. I would like to understand how I could create a Calculated Item just as Shown in the above link so that I could make calculations dynamic based on the Selection made on a Slicer.
Thanks in Advance
Is there Any other Workaround that I could use for this Requirement. Basically, what is needed is that I require to have a Filter where I specify what the Calculation is from which The Table Measures should throw the values based on the Selected Calculation.
The blog that @Mariusz is very useful if you plan on using a slicer. The other option is to use 3 buttons that mimic the appearance of slicer. create a single visualization for each, layer them, then use the button to go between them based on the selected button. Use the show hid in the selection pane to toggle.
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 3 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 11 | |
| 9 | |
| 8 | |
| 6 | |
| 6 |