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

Did you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now

Reply
PSRai
Helper III
Helper III

Pivot

Hi 

 

I am getting a issue where by my totals are not adding up correctly

 

I have a pivot table the column subtotals are brining back in incorrect figure.  it seems to be the column subtotal is total across all date ranges rather than the one specified.

 

The individual readings are correct and the and row subtotals are correct?

 

Pivot.JPG

 

4 REPLIES 4
PSRai
Helper III
Helper III

Hi,

My table is a direct query from Google big query. In the table I have column that has energy readings, date-time and socket id amongst others.

I have created 3 columns based on the energy column, 1 is MAX energy, 2 MIN energy and 3 MAX-(Minus) MIN.

When I pivot MAX minus MIN it should be the total of the row difference and not what I am seeing in the total column.

 

I should see 27.91 and not 516

 

 

  • Pivot Max-Min.JPG
Anonymous
Not applicable

still hard to see exactly, but what if you wrap your function like:

SUMX(
    VALUES( table [col] that is on rows),
    [Measure]
)

Hi,

 

Im still getting the same result. 

 

I have a electric board that has 20 sockets, I need to work out the energy used within each hour period per socket. Individually for each socket the MAX - (minus) - MIN energy that I created works correctly. When I use MAX - MIN as a total of all sockets its basically bringing back a figure of 516 rather than 27.9. In my raw data there are instances where energy MIN is 0 and MAX 516. 

 

in my pivot table the individual socket readings are correct but total is not the sum of all readings

 

for e.g.

 

1          2        3        4        5         6

0.12    0.0    0.03    0.14   0.00    0.07    = 0.36, however what Im seeing is 516

 

Anonymous
Not applicable

they arent "wrong" they are just not what you expected. Any chance you can upload the pbix or the at least the function?

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.