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

zero for total when using measure calculations in the report.

there are hundreds of posts on the topic "total of measure is incorrect" and I have read most of them. Yet, I cannot solve a rather this issue.

I am using matrix visualisation and using measure in the calculation. 

 

Measure1 = if([Measure]<10,DISTINCTCOUNT('DWH FACT_EMPLOYEE'[EMP_ID]),0)
 
Country GroupesMeasure1
BENELUX909
France0
Inde0
Italie825
Royaume-Uni0
Scandinavie1758
Total0
 

Result should come 3492 value.

 
 
1 ACCEPTED SOLUTION
v-lid-msft
Community Support
Community Support

Hi @amty63 ,

 

We can try to use the following measure to meet your requirement:

 

Measure1 =
SUMX (
    SUMMARIZE (
        'Table',
        'Table'[Country Groupes],
        "MeasuresValue", IF ( [Measure] < 10, DISTINCTCOUNT ( 'DWH FACT_EMPLOYEE'[EMP_ID] ), 0 )
    ),
    [MeasuresValue]
)

 

If it doesn't meet your requirement, kindly share your sample data and expected result to me if you don't have any Confidential Information. Please upload your files to One Drive and share the link here.


Best regards,

 

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-lid-msft
Community Support
Community Support

Hi @amty63 ,

 

How about the result after you follow the suggestions mentioned in my original post?Could you please provide more details about it If it doesn't meet your requirement?


Best regards,

 

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-lid-msft
Community Support
Community Support

Hi @amty63 ,

 

We can try to use the following measure to meet your requirement:

 

Measure1 =
SUMX (
    SUMMARIZE (
        'Table',
        'Table'[Country Groupes],
        "MeasuresValue", IF ( [Measure] < 10, DISTINCTCOUNT ( 'DWH FACT_EMPLOYEE'[EMP_ID] ), 0 )
    ),
    [MeasuresValue]
)

 

If it doesn't meet your requirement, kindly share your sample data and expected result to me if you don't have any Confidential Information. Please upload your files to One Drive and share the link here.


Best regards,

 

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.