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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
andy_scott42
Helper II
Helper II

Matrix - Filter by blank in last column

I have a matrix like below:

 

Room08/08/201815/08/201822/08/201829/08/201805/09/2018
a11  1
b11111
c 111 
d11111
e111  

 

I want to filter the matrix so that I only get rows where the vaue in the last column is blank (in this case is 05/09/2018 however this will change as more dates are added).

 

I've tried adding a calculated column to find the max date for each room and then adding a measure where the max(date) <> Max date for each Room but it didn't work. 

 

I've also tried creating a table of Rooms and filtering it where the count of rooms per date is 0 but this also doesn't work,

 

Any help would be greatly appreciated.

 

 

5 REPLIES 5
sess
Regular Visitor

Hi There, 

have you found a solution for your problem? I am facing a similar issue. 

v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @andy_scott42,

 

What is your data model like?

 

Room 08/08/2018 15/08/2018 22/08/2018 29/08/2018 05/09/2018
a 1 1     1
b 1 1 1 1 1
c   1 1 1  
d 1 1 1 1 1
e 1 1 1    

 

Or table  model like this?

table model.PNG

 

If you have the table model 1, please transform it to the second table model in Query Editor with Unpivot then you could create the calculated table and the measure.

 

T3 = 
var temp=CROSSJOIN(VALUES(Table2[Room]),VALUES(Table2[Date]))

return

EXCEPT(temp,ALL(Table2[Room],Table2[Date]))

Measure 3 =

CALCULATE(COUNTROWS('T3'),FILTER('T3','T3'[Date]=MAX('T3'[Date])))

Then you could get the result.

 count blank rows.PNG

 

More details, you could refer to this attachment.

 

Best Regards,

Cherry

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

Thanks a lot for this Cherry. 

 

My data is already in the format of the second table in your example.

 

Thanks for the measure. I should be able to use that. 

 

However, how can I use it to filter the matrix to get the rows where the values in the column with Max(Date) is blank.

 

For example, I want to add a filter so that my matrix will only show rows c and e as the value for 05/09/2018 is blank?

 

Thanks

Hi @andy_scott42,

 

The T3 table is created for the blank values of the rooms.

 

So you could create the date slicer with the date column in T3 table and create the matrix with the date and room column in T3 table.

 

Then you will get the result.

 

filter blank.PNG

 

Best  Regards,

Cherry

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

Thanks @v-piga-msft

 

I need to display all the columns though. 

 

So my desired matrix would be filtered to show:

 

      
Room08/08/201815/08/201822/08/201829/08/201805/09/2018
c 111 
e111  

 

As I want to see the rows where the value in the most recent column is blank.

 

Thanks for your help.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors