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! Learn more

Reply
Tarun_B9012
New Member

Dax function help

I have calcualted columns with the values 1 and 0, I want to create a gauge viz with the percentage of Yes and no. 

 

The calculcation for % of Yes and no is as follows: 
 
Collab with static counts/Ack_flag with "yes"*100
 
calculated column for Collab with static counts is as follows:  
Collab with static counts = If('DSI Commit Metric'[cfg_ww_dsi_flag]="red" &&
'DSI Commit Metric'[part_ww_dsi_flag]="Red" &&
'DSI Commit Metric'[commit_status]="static",1,0)
 
calculation for Ack_flag which has yes, depends on three other columns to be yes. 
 
If('DSI Commit Metric'[cfg_ww_dsi_flag]="red" &&
'DSI Commit Metric'[part_ww_dsi_flag]="Red" &&
 'DSI Commit Metric'[commit_status]="static" ,1,0)
 
How to get to the numbers in percentage? 
 
Please feel let me know if you need more information. 
1 REPLY 1
Anonymous
Not applicable

Hi @Tarun_B9012 ,

Based on your description, it seems that you are trying to determine if a row of data is compliant based on different column conditions. The dax expression you provided only shows you the process of determining your static indicator. It does not show the logic of how you assign the YES. Can you provide sample data and expected results so we can help you faster? Please hide sensitive information in advance

How to provide sample data in the Power BI Forum - Microsoft Fabric Community

 

Best regards,
Albert He

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.