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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
NicolasF26
Regular Visitor

Mesure as a filter

Hello Everyone,

 

I can't manage to use a measure as a classic filter for a visual.

I use this measure to find the first unique value in the column named "CT"

 

FIRST_CT = INDEX(1,DISTINCT(Tableau1[CT]),ORDERBY(Tableau1[CT]))
 
and I want to filter another column (Named "Designation"), and get a table with list of values; values that have as a "CT" column occurrence the result of the measure (which in this case is "CT0161").
 
I reckon it's about values format maybe, but I don't find a way to easily use this measure as a filter, as I could do with any other occurrence in other column
 
Thanks for your help
Best
Nicolas
 
7 REPLIES 7
CharbelArmaleh
Resolver II
Resolver II

Hello

 

A measure cannot be used as a filter, only calculated column can do

 

 

Did I answered your question? Please mark my post as solution!

 

 

HELLO, 

Okay but I don't understand what the column should calculate to be able to refer to the first occurance filtred 

Idrissshatila
Super User
Super User

Hello @NicolasF26 ,

 

If you want to use it as a filter, you should make it as a calculated column and then put this column in the slicer.

 

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

Follow me on Linkedin



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




Could it be done by a LOOKUP Dax but to obtain a list of values instead of the first one ?

@NicolasF26 
No, it should be a calculated column so you could view it.

 

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

Follow me on Linkedin



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




Okay but I don't understand what the column should calculate to be able to refer to the first occurance filtred 

Thank @Idrissshatila for you reply, why do I have to make a calculated column, to create an dynamique Index ?

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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