cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
vanessafvg
Super User
Super User

Incorrect Total showing

why would the total still count everything?

 

measure = CALCULATE(COUNTROWS(Table2), FILTER(Table2, COUNTROWS(Table2) > 1) )

 

how does one adjust the grand total to reflect the correct amount?

 

Capture.PNG

 





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




1 ACCEPTED SOLUTION
v-ljerr-msft
Microsoft
Microsoft

Hi @vanessafvg,

 

Based on my test, the formula below should work in your scenario. Smiley Happy

Measure 2 =
SUMX (
    SUMMARIZE ( Table2, Table2[Category], "counts", COUNTA ( Table2[Category] ) ),
    IF ( [counts] > 1, [counts] )
)

m1.PNG

 

Regards

View solution in original post

3 REPLIES 3
Ashish_Mathur
Super User
Super User

Hi,

 

Try this

 

=SUMX(FILTER(SUMMARIZE(Table2,Table2[Category],"counts",COUNTA (Table2[Category])),[COUNTS]>1).[COUNTS])

Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
v-ljerr-msft
Microsoft
Microsoft

Hi @vanessafvg,

 

Based on my test, the formula below should work in your scenario. Smiley Happy

Measure 2 =
SUMX (
    SUMMARIZE ( Table2, Table2[Category], "counts", COUNTA ( Table2[Category] ) ),
    IF ( [counts] > 1, [counts] )
)

m1.PNG

 

Regards

Beckham
Advocate II
Advocate II

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

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

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors