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
Anonymous
Not applicable

Appended Tables giving incorrect blanks for Countax HAAAALP!

Hi All, 

 

I've appended two tables and need to count the number of times "COMPLETE" appears in the 'Star 1-Completed' column.

 

As seperate tables the countax measure was working, but when I try to countax in the appended table I keep getting '(Blank)'. This is the formula I"m using in my measure: 

 

Countax = COUNTAX('Appended - Service User & Star Data', 'Appended - Service User & Star Data'[Star 1 - Status] = "COMPLETE")
 

I've checked the Format and its text in both instances which shouldn't be a problem with these (?)  

 

Also tried these two and still getting (Blank): 

  1. UsingIFColumn = if('Appended - Service User & Star Data'[Star 1 - Status]= "COMPLETE",1,0) but that's giving me a (Blank) as well. 
  2. CountRows = CALCULATE(COUNTROWS(('Appended - Service User & Star Data')), 'Appended - Service User & Star Data'[Star 1 - Status]= "COMPLETE")
 

The answer it should be giving is 2231. 

 

Ive attached a sample file. 

1 ACCEPTED SOLUTION
ImkeF
Super User
Super User

Hi @Anonymous  

that's due to a "false" relationship between the append-table and your Calendar-table in combination with your page-report filter.

Your're combining a date with a dateTime-field and therefore not matches are found.

If you then exclude all empty fields from the CALENDAR-table you'll get blanks.

Remove the report-level filter and you'll see that one figure returns correct results.

 

image.png

 

Imke Feldmann (The BIccountant)

If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!

How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries

View solution in original post

1 REPLY 1
ImkeF
Super User
Super User

Hi @Anonymous  

that's due to a "false" relationship between the append-table and your Calendar-table in combination with your page-report filter.

Your're combining a date with a dateTime-field and therefore not matches are found.

If you then exclude all empty fields from the CALENDAR-table you'll get blanks.

Remove the report-level filter and you'll see that one figure returns correct results.

 

image.png

 

Imke Feldmann (The BIccountant)

If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!

How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries

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.