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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Bebs
Helper II
Helper II

Filtering matrix table on string DAX result

Hello,

In a matrix table, I've a DAX measures displaying string value (as a result of a calculation).

 

Is there a simple native way to give users possibility to filter theses string values ?

Thanks for your help !

1 ACCEPTED SOLUTION
v-yohua-msft
Community Support
Community Support

Hi, @Bebs 

 

There is no direct native way to filter the results of DAX measures in a matrix table because measures are computed at query time and do not exist as columns in the data model. However, an alternative method can be used.


Consider using a slicer, where you can create a slicer that connects to the same data used by the DAX measure. While you can't place slicers directly for a measure, you can create a slicer based on the underlying column for measure calculations. In this way, the user can indirectly filter the matrix table based on string values.

 

If you can replicate or simplify the logic for calculating a column's DAX measure, consider creating a calculating column that represents the string value to be filtered on. Users can then use this calculated column in the slicer or directly in the matrix to filter the data.

 

How to Get Your Question Answered Quickly 

Best Regards

Yongkang Hua

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-yohua-msft
Community Support
Community Support

Hi, @Bebs 

 

There is no direct native way to filter the results of DAX measures in a matrix table because measures are computed at query time and do not exist as columns in the data model. However, an alternative method can be used.


Consider using a slicer, where you can create a slicer that connects to the same data used by the DAX measure. While you can't place slicers directly for a measure, you can create a slicer based on the underlying column for measure calculations. In this way, the user can indirectly filter the matrix table based on string values.

 

If you can replicate or simplify the logic for calculating a column's DAX measure, consider creating a calculating column that represents the string value to be filtered on. Users can then use this calculated column in the slicer or directly in the matrix to filter the data.

 

How to Get Your Question Answered Quickly 

Best Regards

Yongkang Hua

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.