Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
lucadelicio
Super User
Super User

Return different measure for different values

Hi everyone,

 

i have a KRI Dimension table, like this:
KRI_01
KRI_02
KRI_03

for each of my KRI i have a different Measure that calculate its status from different facts tables.
KRI_01_Status
KRI_02_Status
KRI_03_Status

Now i create a Measure that SWITCH for each KRI and return the relative measure.

SWITCH(
            MAX('KRI'[ID KRI])
            ,"KRI_01", [KRI_01_Status]
            ,"KRI_02", [KRI_02_Status]
            ,"KRI_03", [KRI_03_Status]
            ,BLANK()
)


There is a way to write a measure that automatically select for every KRI the relative KRI_n Status?
That works for example also for a new KRI_04 with the relative measure KRI_04 Status?

Thank you for your support!



Luca D'Elicio

LinkedIn Profile
2 REPLIES 2
amitchandak
Super User
Super User

@lucadelicio , With an Axis/Row, you can change measures using field parameters.

 

example 

Switch TOPN with Field Parameters: https://amitchandak.medium.com/switch-topn-with-field-parameters-299a0ae3725f

 

Learn Power BI: Changing measures based on the axis with Field Parameters in Power BI. Dynamic measures based on the axis/Dimension: https://youtu.be/7ikRAelDph0

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Thank you for your Answer, but i don't want to switch the DIM.
With the same DIM i want to return different measure for each value of my DIM.
Thank you for your support!



Luca D'Elicio

LinkedIn Profile

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors