Forum Discussion

Syndicate_Admin's avatar
Syndicate_Admin
Administrator
4 years ago
Solved

Measure to add Boolean values

Hello everyone I have this case without finding a correct solution, I have two measures that add budget and shipping, I need to another extent meet a condition and add the total result Calc...
  • SpartaBI's avatar
    4 years ago

    Syndicate_Admin 

    countable =
    
    SUMX(
    	VALUES('Style by Make'[Assembly Style]),
    	VAR _budget = Calculations[Budget]
    	VAR _shipping = Calculations[Shipping]
    	RETURN
    	IF ( _budget > _shipping, _shipping, _budget )
    )


    In case it answered your question please mark this as a solution for community visibility. Appreciate Your Kudos 🙂