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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Measure for Master table values

Hi All,

 

I am having a master table where I have all KPI names as a column values (total 44). Also have 44 measures created in another table. There is no linking between these 2 tables so I have created another measure in master table with switch case (with 44 conditions). However, performance is not that good with this approach. Is there any better approach to do this?

 

2020-06-09_9-38-18.jpg

 

Regards,

Niket Talati 

6 REPLIES 6
v-alq-msft
Community Support
Community Support

Hi, @Anonymous 

 

I think your measure is correct to achieve your requirement. You need to create a corresponding measure for each KPI. I'd like to suggest you use performance analyzer to check if there is something else leading to the slow performance. 

 

You may also refer to the following documents to imporve your dax formula.

DIVIDE function vs divide operator (/) 

Appropriate use of error functions 

Use SELECTEDVALUE instead of VALUES 

Use COUNTROWS instead of COUNT 

Use variables to improve your formulas 

Avoid converting BLANKs to values 

Column and measure references 

Avoid using FILTER as a filter argument 

 

Best Regards

Allan

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@Anonymous , Typically switch measures are costly. What is the need to have 44 measures in a Switch, are you creating a measure slicer

Anonymous
Not applicable

@amitchandak ,

 

Thanks for your response. Yes, I am having it as slicer and the names of column on X axis. So that is why I created this big measure.

 

Regards,

Niket Talati

lbendlin
Super User
Super User

Do you have usage statistics on these measures (ie do you know how often each of these is actively selected by your audience)?  That should help you to simplify your report or maybe even break it up into smaller pieces.

Anonymous
Not applicable

Hi @lbendlin ,

 

Thanks for your reply. I am using it in 3 different graphs and all KPIs need to be shown at first glance. So I cannot divide it unfortunately.

 

Regards,

Niket Talati

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.