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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Infidti
Frequent Visitor

SWITCH(SELECTEDVALUE

I am creating a grouping for my measures to show them in a different way like in excel for a table visual.

 

Currently it times out as I believe it's to big, is there anyway I can optimize the following:

 

SWITCH(SELECTEDVALUE('measure group'[measure name]),

"Name",[measure1],0)

 

There are 170 measures in this calculation I have only put one for the example. So will go up to measure170

1 REPLY 1
Kishore_KVN
Super User
Super User

Hello @Infidti , If multiple measures take similar value then create using OR statement to reduce number of iterations. For example 
Switch(Selected Value(Measures),

"Name1"||"Name2"||"Name3", Measure1,.....

 

 

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

Helpful resources

Announcements
Sept PBI Carousel

Power BI Monthly Update - September 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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