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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Incorrect total of measure

Hi All,

 

I have tried all possible ways that i found to calcualte the Measure total but did not succeed.

I have measure that calculate the total volume of customers for last 12 months, the measure works fine and return correct result.

But the total of the measure column ("HL R12 CY") is not the sum of all the values of the measure column.

 

HL R12 CY = calculate (
SUM('Datas Vol'[Total Volume]),
DATESBETWEEN( 'Dates'[date],
max( 'Dates'[Date])- 365,
max ('Dates'[Date])))

Incorret_Total.JPG

2 ACCEPTED SOLUTIONS
v-kelly-msft
Community Support
Community Support

Hi  @Anonymous ,

 

Create a measure as below:

 

_HL R12=SUMX(VALUES('Datas Vol'[POC SAPID]),[HL R12 CY])

 

See my sample data below:

v-kelly-msft_0-1613358989601.png

 

For the related .pbix file,pls see attached.

 

Best Regards,
Kelly

Did I answer your question? Mark my post as a solution!

View solution in original post

Anonymous
Not applicable

Thanks this solution worked

View solution in original post

5 REPLIES 5
v-kelly-msft
Community Support
Community Support

Hi  @Anonymous ,

 

Create a measure as below:

 

_HL R12=SUMX(VALUES('Datas Vol'[POC SAPID]),[HL R12 CY])

 

See my sample data below:

v-kelly-msft_0-1613358989601.png

 

For the related .pbix file,pls see attached.

 

Best Regards,
Kelly

Did I answer your question? Mark my post as a solution!

Anonymous
Not applicable

Thanks this solution worked

PhilipTreacy
Super User
Super User

Hi @Anonymous 

You'll need to supply your data/PBIX file in order for this to be checked.

Regards

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


Some thoughts:

how do you know it's not working?  Have you checked the difference between actual and expected and tried to see if there is matching data?

Are you following the rules for calendar tables? https://exceleratorbi.com.au/power-bi-calendar-tables/

I think you would be better to use datesinperiod 



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
Anonymous
Not applicable

The measure is working fine, it the total line which is incorrect.

What i am looking for is to have a Sum of the column "HL R12 CY" in total line.

I exported the result to excel and when i manually check the total is different than what we currently have in the image total 8561.88

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.