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
gkakun
Helper III
Helper III

Total row not match

Hi all,

 

I have an issue with total row in a table.

I have this report, while the measures is use as follow:

 

Total= CALCULATE(DISTINCTCOUNT('FR Detailed'[KeyColumn]),'FR Detailed'[KeyColumn]<>BLANK())

SRT= CALCULATE(DISTINCTCOUNT([KeyColumn]),'FR Detailed'[FR Status]="SRT")

SLD= CALCULATE(DISTINCTCOUNT([KeyColumn]),'FR Detailed'[FR Status]="SLD")

SFF= CALCULATE(DISTINCTCOUNT([KeyColumn]),'FR Detailed'[FR Status]="SFF")

LDC= CALCULATE(DISTINCTCOUNT([KeyColumn]),'FR Detailed'[FR Status]="LDC")

CMP= CALCULATE(DISTINCTCOUNT([KeyColumn]),'FR Detailed'[FR Status]="CMP")

 

While CMP/LDC/SFF/SLD/|SRT are statuses and the Key is just row identifier.

 

as you can see in the print screen the total is 207 while the actual is 544 and the CMP is 203 while the actual is 538.

also the FR% is wrong since it should be CMP/Total 

Capture.PNG

4 REPLIES 4
quentin_vigne
Solution Sage
Solution Sage

Hi @gkakun

 

What method did you choose to display ? SUM ? Count ? Distinct count ? 

 

- Quentin

Hi Quentin,

 

Since it's a measure I cant choose the CMP colum for exampe to be SUM. in the data model it calculated as distinct count for the relevant rows, but the total present it in the wrong way. the total should presented as sum of all the "CMPs" .

 

 

@gkakun

 

Can you do it again but as a column ? (Not sure about this)

 

- Quentin

i dont have a way to calculate it as a column. It must be measure 

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.