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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors