Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Pbiuserr
Post Prodigy
Post Prodigy

Help with measure

Hello,

Could anyone tell me why this measure gives me same result as just normal sum, the threshold of 1.5 doesnt work (this field is a calculated column to which DIVIDE was used and its reflected in pct, but 150% is 1.5, right?)

 

Measure =

VAR _First_Amount = CALCULATE( SUM( Table[Amount] ), 'FactTable'[Ratio] <= 1,5 )
VAR _Second_Amount = CALCULATE( SUM( Table2[Amount] ), 'FactTable'[Ratio] <= 1,5 )
RETURN
CALCULATE( DIVIDE( _First_Amount, _Second_Amount ))

4 REPLIES 4
Syk
Super User
Super User

First thing I see is that your measure has 1,5 (comma) instead of 1.5 - could that be the issue?

Hello,

No. I tried last approach with coma, but it gave me error. I am trying with dots

Can you share some of your data? Also I'm not sure if you changed the variable names to post here but they don't match your return in the measure.

Yes I changed due to private reasons (client data, can easily spot)

Cannot share the data unfortunately, but let me explain

Basically I got two tables with some $ amount (Table and Table2)

 

I want to divide sum of these, but only for lines from Fact table, where column in Fact table [Ratio] is above 150% (thus 1.5)

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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