Forum Discussion

Geilisa's avatar
Geilisa
Frequent Visitor
3 years ago

Matrix is incorrectly displaying percents

I have a super intricate one here, so please have patience with me. Any help is very much appreciated. 

All proprietary information has been changed. 

3 Tables plus a Calendar Table

I have a measure "True Overall Score" being sorted by a Calendar table and Company name column in a matrix. Company name as the Rows, Month as the Columns, and the measure I created as the values. Individually the measure works perfectly with all the months and companies, it gives a percentage based off of two other calculated measures listed below. 

My calendar table it connected to the 3 different tables "RECEIPTSTABLE", "STRIKESTABLE",  and "DEMERITTABLE"; then its sorted by month.
"STRIKESTABLE"  and "DEMERITTABLE" are tables that need to negatively impact the company score, where as "RECEIPTSTABLE" just has number of received shipments and if they were late or on time. Late also negatively impacts the score. 
 
I have over 50 companies listed, I use slicers to select 1, multiple, or all for the companies or months.
My slicers are synced to work on all 3 tables for matching company names. 

My measures look like this

 

True Our Qty = (SUM(RECEIPTSTABLE[OurQty]))

 

On Time = (SUMX(filter(RECEIPTSTABLE, RECEIPTSTABLE[Status by Datediff] = "On Time"), [OurQty]) - SUM(DEMERITTABLE[Quantity])+0)  / RECEIPTSTABLE[True Our Qty]
 
True Q Score = (([On Time]*100) - (COUNT((STRIKESTABLE[True Quantity])*5)  - (SUMX(FILTER(STRIKESTABLE, STRIKESTABLE[Current Late] = "Currently Late"), [True Quantity])*10)) / 100
 
True Overall Score = IFERROR((STRIKESTABLE[True Q Score] + [On Time]) / 2, blank())
  
What the Matrix looks like with everything selected. (BAD)
What the Matrix looks like with just the first 25 companies selected. (BAD)

What the Matrix looks like with just the first 5 companies selected. (Good)

 
What the Matrix looks like with just the first company selected. (Good)
 

What the Matrix looks like with just the 3rd company selected. (Good)

Only when a few companies are individually selected does it work.

No RepliesBe the first to reply