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

Incorrect Measures output after adding additional fields in Power BI

Hi All,

I have below measures in my report :

Total = distinctcount([account_no],  [DQ_Issue]= "Record-Set" )

In-Valid_Contacts = calculate(distinctcount([account_no]), DQ_Issue="In-Valid" && Category = "Email-Marketing" )

Valid-Contacts = [Total]-[In-Valid_Contacts]

Valid-Contacts%=[Valid-Contacts]/[Total] *100

 

My expected output is as below which I am able to get:

poojithas_0-1669025505134.png

But, when I add two additonal fields, that is DQ_Issue and Category , the output is changing.
1. Output after I add DQ_Issue field: -> This is still correct as I can add a filter to restrict to only DQ_Issue="In-Valid" and the output is same as expected output

poojithas_1-1669025629127.png

 

2. Output when I add both DQ_Issue and Category: This is incorrect as after adding a filter to restrict  DQ_Issue="In-Valid" and Category="Email-Marketing'  the output is changing

poojithas_2-1669025701934.png

 

Note: I am adding DQ_Issue and Category field to enable drillthrough to another page based on DQ_Issue and Category. I am basically adding the fields and hiding this from the final output.

Could someone please suggest on how the below output can be achieved.

Valid ContactsIn-Valid ContactsValid Contacts%DQ_IssueCategory
996463299.97%In-ValidEmail-Marketing
1 ACCEPTED SOLUTION

Changing the measure Total = distinctcount([account_no],  [DQ_Issue]= "Record-Set"  &&Category = "Contacts" ) fixed the issue.

View solution in original post

3 REPLIES 3
v-luwang-msft
Community Support
Community Support

Hi @poojithas ,

Could you pls share your own solution to help others  to figure out it.

 

Best Regards
Lucien

Changing the measure Total = distinctcount([account_no],  [DQ_Issue]= "Record-Set"  &&Category = "Contacts" ) fixed the issue.

poojithas
Helper III
Helper III

This has been fixed by changing the logic. thankyou!

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.

Top Solution Authors
Top Kudoed Authors