Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
poojithas
Helper III
Helper III

Incorrect values with calculated measures

Hi All,

I have a table which has data as below:

 

poojithas_1-1669727280407.png

 

 

I am trying to find the distinct count of account_nos for passed and failed records. I created three measures

Failed Records:

m_incomplete records = calculate(distinctcount(ifcs_account_no),dq_issue="in-complete")

Total Records:

m_total_records = calculate(distinctcount(ifcs_account_no),dq_issue="record_set")

Passed Records:

m_completed_records = totalrecords - failedrecords

Now, when I want to show only the passed records in the table. I add the passedrecords in the filter to restrict to only "1" as shown in the image. I get some extra records. Expected output is 4952 but I get 4960

 

poojithas_2-1669727469222.png

Output after removing filter:

poojithas_3-1669727608931.png

I noticed that some of the records are not showing right values. examples below:

the orange highlighted ones should be 0 for complete_records(passed) and should be 1 for in-complete records(failed) but I am getting opposite values.

poojithas_4-1669728125091.png

Could someone please assist here.

Please note that: when I only have ifcs_account_no in the table, then I am getting correct results,  I get incorrect values when I drag additional fields

 

Could someone please assist here.

 

 

 

 

 

 

 

5 REPLIES 5
v-luwang-msft
Community Support
Community Support

Hi  @poojithas ,

Pls share your sample pbix file ,and remember to remove confidential data.

 

 

 

Best Regards

Lucien

@v-luwang-msft  I do not see attchment option to include pbix file in here. Could you pls let me know how I can send

Hi @poojithas ,

You could share through a public link.

 

 

Best Regards

Lucien

@v-luwang-msft 
Please find the report here Report 

The "Passed Records" page shows 5 records , but the expected output is 2 records

(ifcs_account_no: 200145442 and 200152405)

@v-luwang-msft  Could you please suggest

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

Feb2025 NL Carousel

Fabric Community Update - February 2025

Find out what's new and trending in the Fabric community.