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

View all the Fabric Data Days sessions on demand. View schedule

Reply
Amz_123
Helper I
Helper I

how to sum a measure

Hi Community,

 

I need a help how to sum a Measure Value, Here in my case Measure Value is multipled by parameter value,

For Example,
                                              Consider, Measure = IF([Measure 2]<1,[Measure 1]*[Measure 2],"")

                                                    here "Measure 1" is parameter value, Measure 2=No of shift

i.e., Graph is drawn against Measure and Year

 

I need output measure to be sum of no. of shift is less than 1 for given years.

If year 1 < 1, to be count as "1"

  year 2 < 1, to be count as "1", sum will be "2"

 so I need new measure as sum(if[Measure]<1,[Measure 1]*[Measure 2],"")). Please guide if this Possible or not 

 

Thanks in Advance,
Amz

 

1 REPLY 1
Greg_Deckler
Community Champion
Community Champion

Not entirely certain that I understand your issue. Would be helpful to have sample data and expected output. That being said, typically for something like this, you are going to use SUMMARIZE or ADDCOLUMNS, such as: Measure = VAR __table = SUMMARIZE('Table',[Column],"__mymeasure",[Measure 1]) RETURN SUMX(__table,[__mymeasure]) Basically, you typically need to supply some sort of table context for the calculation of your measure and then sum over that table. It is kind of like my Measure Totals The Final Word: https://community.powerbi.com/t5/Quick-Measures-Gallery/Measure-Totals-The-Final-Word/m-p/547907


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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
Top Kudoed Authors