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
Lena85
Helper I
Helper I

incremental row level % with two calculated columns

Hi! 

 

I am looking to divide number of Incorrect checks

( defined as calculated column: 

Incorrect Spotchecks = if('Spotchecks doc customs merged dim parcels'[Price OK]="No" || 'Spotchecks doc customs merged dim parcels'[Quantity OK]="No" || 'Spotchecks doc customs merged dim parcels'[Description OK]="No" || 'Spotchecks doc customs merged dim parcels'[Counterfeit]="Yes" || 'Spotchecks doc customs merged dim parcels'[B2B]="Yes", 1, 0)

 

by  Total checks (defined as calculated column: 

Total Spotchecks = if(NOT(ISBLANK('Spotchecks doc customs merged dim parcels'[Index])),1,0)

 

In such way that not only the Total % value is correct, but such that if I add a date column, the daily % values are also correct, which is not the case currently. 

 

 

Using quick measure Division function creates: 

Count of Incorrect Spotchecks divided by Count of Total Spotchecks = DIVIDE( COUNTA('Spotchecks doc customs merged dim parcels'[Incorrect Spotchecks]), COUNTA('Spotchecks doc customs merged dim parcels'[Total Spotchecks]) )

 

 But that results in each row output of 100% which is incorrect (Incorrect checks =25, total checks =35 so I should get 71% total

 

Is division by calculated columns any different than regular ones? And how can I obtain the division that results in accurate row level % values? Thanks!

3 REPLIES 3
Lena85
Helper I
Helper I

It is solved

Lena85
Helper I
Helper I

Lena85_0-1655707725404.png

Count of Incorrect Spotchecks divided by Count of Total Spotchecks =
DIVIDE(
    COUNTA('Spotchecks doc customs merged dim parcels'[Incorrect Spotchecks]),
    COUNTA('Spotchecks doc customs merged dim parcels'[Total Spotchecks])
)
 
The last column should have given a result of diving the incorrect spotchecks by the total spotchecks on each row, so 1/4 for first date, 2/4 for the next one, etc. @BIBen is there anything else you need?
 
lbendlin
Super User
Super User

Please provide sanitized sample data that fully covers your issue. If you paste the data into a table in your post or use one of the file services it will be easier to assist you. I cannot use screenshots of your source data.

Please show the expected outcome based on the sample data you provided. Screenshots of the expected outcome are ok.

https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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 Solution Authors
Top Kudoed Authors