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
Jackbaz99
Helper I
Helper I

Passing measure into a calculated column

Hi,

 

Struggling with this. How can i pass a measure into an if/switch stament. 

 

This will be used to format colours - not sure how to get around this 

 

Measure = SWITCH(TRUE() , 'Calculations Table'[DSA%_Late] <> 'Construct_Supplier Ruling'[DSA_Amb_Target} & 'Construct_Supplier Ruling'[DSA_Grn_Target] , 3 )

 

2 REPLIES 2
v-easonf-msft
Community Support
Community Support

Hi, @Jackbaz99 

Invalid code can't help us understand your problem, please try to use pictures and text to describe your needs.

Best Regards,
Community Support Team _ Eason

daXtreme
Solution Sage
Solution Sage

Measures should never be preceded with the table name they reside in. On the other hand, columns should always be. Please stick to this rule because if you don't, others will have (and do have!) a very hard time reading and understanding the code. Thanks.

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

July 2024 Power BI Update

Power BI Monthly Update - July 2024

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

July Newsletter

Fabric Community Update - July 2024

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

Top Solution Authors
Top Kudoed Authors