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
harrinho
Helper III
Helper III

Compare percentages

Hi, 

 

I want to create a calculation which will flag 1 when the percentage is >=5% and 0 when the percentage is <5%. 

 

delta over 5 count = IF([Delta %]>=0.05,1,0)

However, it doesn't seem to work well, since as you can see below I get "1" in cases where the delta% is -100% for example

 

 

 

2 REPLIES 2
v-danhe-msft
Employee
Employee

Hi @harrinho,

From your posted picture, I could not figure out your [Delta%] and [delta over 5 count] fields are calculated columns or measures? Could you offer me more information or could you please share pbix file if possible? If the report does contain sensitive data, please upload your report to your OneDrive and send the link to me via private message.

 

 

Regards,

Daniel He

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thanks for the reply @v-danhe-msft. The Delta % is a calculated measure which returns the delta between allocated and actual hours. 

 

Delta % = DIVIDE([Delta Total],'CLARITY ALLOCATIONS'[Alloc Hours],0)

The delta over 5 count is what I want to create. I want to get the count of people who have a >5% delta and I'm using the following calculation

 

delta over 5 count = IF([Delta %]>=0.05,1,0)

But it doesn't seem to work well as per screenshot in the initial post because I get "1" where delta is negative. I want to get "1" when the delta % is actually greater than 5 %

 

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.