Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
Hi!
I'm trying to create a measure like this: In this situation I want it to show the total value, regardless of the month (or any date filters on the page) and show for each location. This issue im having is with the "total" field:
I've tried a few different equations and can only get it to work when I add "min" and "max, but that obviously created problems with the totals (with min it takes the first value, with max it takes the last) Is there a way to get this equation to work without min/max or to get the total to actually add up?
Thanks!!
Solved! Go to Solution.
HI @PBINewbie920,
You can try to use the following measure formula to calculate the summary values based on 'location' and 'date' groups:
Formula1 =
CALCULATE (
SUM ( 'ALL Sources'[Total $] ),
ALLSELECTED ( 'All Sources' ),
VALUES ( 'ALL Sources'[Date] ),
VALUES ( 'ALL Sources'[Location] )
)
Regards,
Xiaoxin Sheng
HI @PBINewbie920,
You can try to use the following measure formula to calculate the summary values based on 'location' and 'date' groups:
Formula1 =
CALCULATE (
SUM ( 'ALL Sources'[Total $] ),
ALLSELECTED ( 'All Sources' ),
VALUES ( 'ALL Sources'[Date] ),
VALUES ( 'ALL Sources'[Location] )
)
Regards,
Xiaoxin Sheng
@PBINewbie920 , try measures like
Grand Total =
CALCULATE (
SUM ( 'ALL Sources'[Total $] ),
FILTER (
ALL ( 'All Sources' )
))
Location wise total =
CALCULATE (
SUM ( 'ALL Sources'[Total $] ),
FILTER (
ALL ( 'All Sources' ),
'ALL Sources'[Location] = MAX ( 'ALL Sources'[Location] )
)
)
or
Grand Total =
CALCULATE (
SUM ( 'ALL Sources'[Total $] ),
FILTER (
ALLSELECTED ( 'All Sources' )
))
Location wise total =
CALCULATE (
SUM ( 'ALL Sources'[Total $] ),
FILTER (
ALLSELECTED ( 'All Sources' ),
'ALL Sources'[Location] = MAX ( 'ALL Sources'[Location] )
)
)
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 82 | |
| 48 | |
| 36 | |
| 31 | |
| 29 |