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
AlanP514
Helper V
Helper V

Return unique column text values

AlanP514_1-1646931029233.png

Need help , which Dax will help to fetch the unique name from name column and condition Should be Certification level should be 1

AlanP514_2-1646931106107.png

The above Attached file is i applied it is returning error 
please help me

 

1 ACCEPTED SOLUTION
v-xiaotang
Community Support
Community Support

Hi @AlanP514 

Try this dax expression, it will return a table with unique name where level="1 Star".

Table_unique_name = CALCULATETABLE(DISTINCT('Table'[Name]),FILTER('Table','Table'[Level]="1 Star"))

vxiaotang_0-1647314123696.png

Best Regards,

Community Support Team _Tang

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

View solution in original post

4 REPLIES 4
v-xiaotang
Community Support
Community Support

Hi @AlanP514 

Try this dax expression, it will return a table with unique name where level="1 Star".

Table_unique_name = CALCULATETABLE(DISTINCT('Table'[Name]),FILTER('Table','Table'[Level]="1 Star"))

vxiaotang_0-1647314123696.png

Best Regards,

Community Support Team _Tang

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

truptis
Community Champion
Community Champion

Hi @AlanP514 ,
Try this:
Result_Col = calculate(distinct(name), filter(tablename,certificate="1 star")

If the solution helps, then please mark it has a solution. Thanks.

Regards,

TruptiS

That will not 

YukiK
Impactful Individual
Impactful Individual

You should be get the result with DAX like the following:

Your Measure = 

CALCULATETABLE(
    VALUES(CertificationName),
    YourColumn in { "YourValue" }
)

 

Note, this will return a table.


Hope this helps!

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.