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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
12Bowers12
Helper V
Helper V

measure as an argument in another measure

Hello everyone,

Sorry I could not figure out  the format requirement.

I have two measures, Premium and Loss. If Premium is zero, Loss should be zero, How can I use measure Premium as an argument in measure Loss?

Thank lot.

Dennis

 

Loss =

VAR Prem = [Premium]  

RETURN

    CALCULATE (

        SUM ( Data[Loss] ),

        Prem > 0

    )

 

2 REPLIES 2
tyatsenko
Frequent Visitor

Hi,

 

Try this one:

 

Loss =

VAR Prem = [Premium]  

RETURN  IF(Prem =0, 0,

    CALCULATE (

        SUM ( Data[Loss] )

    )

 

_AAndrade
Super User
Super User

Try this: IF([Premium]=0, 0,SUM ( Data[Loss] ))





Did I answer your question? Mark my post as a solution! Kudos are welcome.

Proud to be a Super User!




Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.

Top Solution Authors