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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
ahhollan
Helper I
Helper I

Count for Jan in Line Chart should be 13, why is it 139

The screenshot shows the count for January to be 139, however when I filter the data it should be 13. I can't find the issue with my measures or my filters. See screenshots.

ahhollan_0-1611617074441.png

ahhollan_1-1611617108499.png

ahhollan_2-1611617136684.png

 

 

1 ACCEPTED SOLUTION
PhilipTreacy
Super User
Super User

Hi @ahhollan 

The figure of 139 is correct with the Measure you are using.  This measure gives a value of 139 because your axis and filter are using Fiscal Month from the Date table

 

Covid = CALCULATE ( COUNTROWS( '2700 WO Listing' ),'2700 WO Listing'[Covid vs Non-Covid (groups)] = "Covid" )

 

 

fisc-m.png

 

However what I think you are expecting is the value to be 13 when you filter by the Fiscal Month/Yr column in your 2700 WO Listing table.

That does indeed give you 13.

pt-cov.png

Regards

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


View solution in original post

5 REPLIES 5
PhilipTreacy
Super User
Super User

Hi @ahhollan 

The figure of 139 is correct with the Measure you are using.  This measure gives a value of 139 because your axis and filter are using Fiscal Month from the Date table

 

Covid = CALCULATE ( COUNTROWS( '2700 WO Listing' ),'2700 WO Listing'[Covid vs Non-Covid (groups)] = "Covid" )

 

 

fisc-m.png

 

However what I think you are expecting is the value to be 13 when you filter by the Fiscal Month/Yr column in your 2700 WO Listing table.

That does indeed give you 13.

pt-cov.png

Regards

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


pranit828
Community Champion
Community Champion

HI @ahhollan 

It is due to the measure calculation as you are just doing a normal count from 2700 WO Listing table instead you need the count of IDs from mission critical table.

For each ID there can be multiple listings.

try

 

 

Covid = CALCULATE ( DISTINCTCOUNT( 'Mission Critical'[ID] ),'2700 WO Listing'[Covid vs Non-Covid (groups)] = "Covid" )

 

 

Check the difference in calculation





PBI_SuperUser_Rank@1x.png


Hope it resolves your issue? 
Did I answer your question? Mark my post as a solution!

Appreciate your Kudos, Press the thumbs up button!!
Linkedin Profile
PhilipTreacy
Super User
Super User

Hi @ahhollan 

Please supply your PBIX file, can't really debug this without it.

Regards

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


I can't seem to attach my pbix file. Please advise.

 

thanks.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.