Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
Following scenario:
I am calculating a performance indicator using the Calculated Metric below:
Solved! Go to Solution.
@Anonymous you can get around this by using filter()
Respectfully,
Zoe Douglas (DataZoe)
Follow me on LinkedIn at https://www.linkedin.com/in/zoedouglas-data
See my reports and blog at https://www.datazoepowerbi.com/
@Anonymous , refer if this can help
Hi @Anonymous ,
I think you could accomplish this by creating two additional calculated tables, and not creating a relationship to either of them with the main dataset with all the periods for Slicer1 and Slicer2:
Slicer1 = summarize('Date_and_Periods','Date_and_Periods'[Period])
Slicer2 = summarize('Date_and_Periods','Date_and_Periods'[Period])
The user could pick the two periods they want to use from those.
The calculated metric would then be changed to:
Respectfully,
Zoe Douglas (DataZoe)
Follow me on LinkedIn at https://www.linkedin.com/in/zoedouglas-data
See my reports and blog at https://www.datazoepowerbi.com/
Thank you @DataZoe
I have tried your solution. However, I do get the following error message for the calculated metric:
A function 'SELECTEDVALUE' has been used in a True/False expression that is used as a table filter expression. This is not allowed.
I am not sure, but it almost seems like CALCUALTE has some limitations with dymanic Filter Values.
@Anonymous you can get around this by using filter()
Respectfully,
Zoe Douglas (DataZoe)
Follow me on LinkedIn at https://www.linkedin.com/in/zoedouglas-data
See my reports and blog at https://www.datazoepowerbi.com/
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 84 | |
| 48 | |
| 36 | |
| 31 | |
| 29 |