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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
ArchStanton1
New Member

Incorrect Total in Matrix Visual

Hi,

(I have edited this because the problem is actually the reverse of what I wrote originally).

 

Edited: The correct total for 6-9mths in the visual below is 78 but the matrix is including 53 under Adjudication which would / should take the total for the row to 131. All the other age profile numbers are correct apart from 6-9 mths.

 

ArchStanton1_0-1696494212245.png

 

The AgeProfile2 is a Calculated Column, the code is:

 

 

 

 

Age Profile2 = 
if( 'Cases'[Case Length (Validation Date)] < 91.3, REPT(UNICHAR(8203),9)&" 0-3 Mths",
    if('Cases'[Case Length (Validation Date)] < 182.5, REPT(UNICHAR(8203),8)&" 3-6 Mths",
        if('Cases'[Case Length (Validation Date)] < 273.5, REPT(UNICHAR(8203),7)&" 6-9 Mths",
            if('Cases'[Case Length (Validation Date)] < 365.25, REPT(UNICHAR(8203),6)&" 9-12 Mths",
                if('Cases'[Case Length (Validation Date)] < 456.25, REPT(UNICHAR(8203),5)&" 12-15 Mths",
                    if('Cases'[Case Length (Validation Date)] < 547.5, REPT(UNICHAR(8203),4)&" 15-18 Mths",
                        if('Cases'[Case Length (Validation Date)] < 638.75, REPT(UNICHAR(8203),3)&" 18-21 Mths",
                            if('Cases'[Case Length (Validation Date)] < 730.5, REPT(UNICHAR(8203),2)&" 21-24 Mths",
                                REPT(UNICHAR(8203),1)&" 24+ Mths"))))))))

 

 

 

 

And the measure I'm using to calculate the numbers is here:

 

 

 

 

Closed = CALCULATE(
    TOTALYTD(COUNT('Cases'[Case Number]),'Cases'[Resolution Date],"31/03"),
    'Cases'[statecode] = "Resolved")

 

 

 

 

Can anyone shed some light on why everything is correct for all other Teams apart from Adjudication and why its only wrong for 6-9 mths?

Incidentally, when I recreate the visual using filters and distinct counds of IDs, the 53 in Adjudication do not appear anymore.

Why is my 'Closed' measure introducing these 53?

Thanks

1 ACCEPTED SOLUTION

I've seen this kind of behaviour but that was a simple solution. That was of typing mistake. But this is completely different. I am not certain about the issue. I won't be able to help without seeing any data, but guess it's not possible. 

 

best of luck. Let us know here if you find the root cause. 

 

 BR,

Rubayat


Did I answer your question? Mark my post as a solution!super-user-logo

Proud to be a Super User!


View solution in original post

6 REPLIES 6
rubayatyasmin
Super User
Super User

@ArchStanton1 

 

  1. Ensure 'Cases'[Case Length (Validation Date)] values for Adjudication are indeed in the 6-9 months range.

  2. Ensure Adjudication cases are marked as "Resolved" and their 'Cases'[Resolution Date] falls within the current fiscal year.

  3. Make sure no filters exclude the 6-9 months Adjudication cases from your visualization.

  4. Confirm the missing Adjudication cases are in your dataset and don't have anomalies.

  5. Review relationships to ensure no inadvertent filtering.

 

rubayatyasmin_0-1689517080227.png


Did I answer your question? Mark my post as a solution!super-user-logo

Proud to be a Super User!


I've carried out checks 1-3 that you suggested and they are fine. Additionally, I have isolated the 78 6-9 mths in the data table by applying filters to relevant columns. 


So I'm not quite sure why there are 53 Adjudications (6-9mths) being included in the matrix? They are not being counted in the row & column totals, which I believe is a good thing.

 

They shouldn't be in the visual from what I can see, I'm at a loss why they are there.

Can you provide additional demo data or pbix file?

 

rubayatyasmin_0-1689517080227.png


Did I answer your question? Mark my post as a solution!super-user-logo

Proud to be a Super User!


Unfortunately I cannot provide a pbix file as its directly connected to large complex live system.

 

Would you agree that the measure I have provided should in no way introduce 'phantom' numbers into my visual, bearing in mind that the report is filter free? The 53 was excluded in the totals which is even more bizarre.

 

As I've mentioned already, I have duplicated the report and re-built it using filters and distinct counts I it works, the red circle below is now correct as a blank.

 

ArchStanton1_0-1696579955266.png

Have you seen behaviour like this before?

I've seen this kind of behaviour but that was a simple solution. That was of typing mistake. But this is completely different. I am not certain about the issue. I won't be able to help without seeing any data, but guess it's not possible. 

 

best of luck. Let us know here if you find the root cause. 

 

 BR,

Rubayat


Did I answer your question? Mark my post as a solution!super-user-logo

Proud to be a Super User!


Will do, thanks for your help.

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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