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
romovaro
Post Partisan
Post Partisan

Use USD only when Project Health is REd or Orange

HI

 

Trying to replicate the table below in Power BI

romovaro_1-1658494252700.png

 

I have a USD column and a Project Health column. (Values can be "Green", "Red", "Orange", etc...)

The idea is to show total USD in one row and create another mesure called risk where only USD with Project health (RED and ORANGE) are included and extra row for % vs the total.

Tried different formulas but not really working.

 

Risk = CALCULATE(SUM('Weekly Slippage'[USD], FILTER ('Weekly Slippage', 'Weekly Slippage'[Project Health]="Red" || 'Weekly Slippage'[Project Health]="Orange")))
 
any idea?
 
thanks and Happy weekend
1 ACCEPTED SOLUTION
Anonymous
Not applicable

@romovaro check the sum function. you didnt closed the sum function properly.

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

@romovaro Use

Risk = CALCULATE(SUM('Weekly Slippage'[USD], FILTER ('Weekly Slippage', 'Weekly Slippage'[Project Health] IN {"Red" ,"Orange"}))

HI Mohan

 

Thanks for your help

 

Tried your formula but I get an error:

romovaro_0-1658495127347.png

Too many arguments were passed to the SUM function. The maximum argument count for the function is 1.

Anonymous
Not applicable

@romovaro check the sum function. you didnt closed the sum function properly.

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.