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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Summing based on a date parameter in Power BI Report Builder

@ links to members, content

 

I have a report in Power BI Report Builder.  I created a matrix with a date parameter.  My totals in my matrix are not correct, I cannot get the total field to acknowledge the date range of the parameter.   See Below.

parameters.pngTable.png

Example- first row should show a total of 70 not 2730.   It appears it is not considering the date parameter and is giving all the hours for an employee regards to the date parameter. This is the expression I am trying to use for this total column:

 

=Sum(IIF(Fields!WorkDate.Value >= Parameters!ID_StartDate.Value AND Fields!WorkDate.Value <=Parameters!ID_EndDate.Value,Fields!WorkHours.Value,0))

 

Any help would be greatly appreciated!

1 REPLY 1
Greg_Deckler
Community Champion
Community Champion

This looks like a measure totals problem. Very common. See my post about it here: https://community.powerbi.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/td-p/63376

Also, this Quick Measure, Measure Totals, The Final Word should get you what you need:
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
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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
Top Kudoed Authors