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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

Reply
Anonymous
Not applicable

Show correct percentage of calculated measure over time in Stacked Area Chart

Hello everybody,

 

for a Data Quality Dashboard I defined some rules, and for each rule I want to monitor what share of data fails the rules. I want to display this over time. It looks like this:

image.png

I would expect, that the average value for accuracy is about 16%. Instead, the sum over all quarters is 16,3%. 

 

It takes the amount of failed rows for each quarter and divides it by the amount of total rows of the total selected timespan. Why does it do this? How can I solve the problem?

 

For completeness: Failed, Passed and FailedRatio are measures defined as:

Failed = DISTINCTCOUNT(fsri_dq_rules[claim_number])
Passed = - [Failed] + CALCULATE(TotalRows[TotalRows];ALLSELECTED())
FailedRatio = [Failed] / ([Failed] + [Passed])

Any help would be much appreciated 🙂

 

Thanks

Klaus

1 REPLY 1
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous,

 

Please try to modify your measure with below format to see if it works:

Passed = - [Failed] + CALCULATE(TotalRows[TotalRows];ALLEXCEPT('TableName','TableName'[Quarter]))

 

By the way, what is formula of TotalRows[TotalRows]?

 

Regards,

Yuliana Gu

 

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.