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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
android1
Post Patron
Post Patron

Measure doesn't add up

Hi,

 

I have this measure -> GP = - 1800 + SUM(vw_PivotVisitsInvoiced[Income Generated])

 

Calc Column -> Income Generated = vw_PivotVisitsInvoiced[Visits_NoHrs] * 6.25

 

Why is my total below not right?

 

Thanks,

 

Gerry

 

GP.jpg

 

 

1 ACCEPTED SOLUTION

@android1

 

Your GP is a measure. At the grand total, it will just sum all data together first, then minus 1800. If you want your expression be evaluated on each row, you should use SUMX().

 

GP =SUMX(vw_PivotVisitsInvoiced,vw_PivotVisitsInvoiced[Income Generated]-1800)

 

See sample below:

 

2.PNG

 

Regards,

View solution in original post

5 REPLIES 5
kcantor
Community Champion
Community Champion

what are you expecting the number to be and why is it wrong? Your snip has no context for us to determine the source of the error.





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

Proud to be a Super User!




Hi kcantor,

 

Was hoping the total of GP, €3157.81 would be -€16642.2 (Ths sum of the GP totals)

@android1

 

Your GP is a measure. At the grand total, it will just sum all data together first, then minus 1800. If you want your expression be evaluated on each row, you should use SUMX().

 

GP =SUMX(vw_PivotVisitsInvoiced,vw_PivotVisitsInvoiced[Income Generated]-1800)

 

See sample below:

 

2.PNG

 

Regards,

Hi Simon,

 

Thanks very much.

 

See the GP column. 1800 is subtracted from Income Generated each week. (The total of -1000 is correct)

How would I show GP to start at -1800 & add Income Generated to it each week.

 

So in attched,

 

Income Generated.jpg

 

I would like to see:

 

Wk 10 GP = -1712.5

Wk 11 GP = - 1603.12 ( - 1712.5 +109.38)

Wk 12 GP = - 1499.99 ( - 1603.12 + 103.13)

 

Gerry

 

 

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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