cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
romovaro
Post Patron
Post Patron

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
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors