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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount 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.

Top Solution Authors