cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
poojithas
Helper II
Helper II

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 II
Helper II

This has been fixed by changing the logic. thankyou!

Helpful resources

Announcements
Vote for T-Shirt Design

Power BI T-Shirt Design Challenge 2023

Vote for your favorite t-shirt design now through March 28.

March 2023 Update3

Power BI March 2023 Update

Find out more about the March 2023 update.

March Events 2023A

March 2023 Events

Find out more about the online and in person events happening in March!

Top Solution Authors