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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
Anonymous
Not applicable

Using Dax functions to create a mesure.

 

Hello,

I have this table that contains several groups. In the screenshot, I filtered only on a single group( GROUP 1)  to minimise the data. I wish I could create a measure, or a calculated column that returns for each group, the name of the class: the classes are A, B, C, D, E, F, G. They must always appear on the visual even if they are missing for some groups. In each class I have to display the names like the example I showed.

Any suggestion please? 

 

 

khouloud_belhaj_0-1626873320004.png

 

khouloud_belhaj_1-1626873404017.png

 

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , while I did not get it completely. 

You need to have a separate table with distinct nom class 

 

Class  = distinct(Table[Nom Class]) 

Join this with this table  

 

I think you need a measure like  

 

measure = 

var _con = concatenatex(Table, Table[Nom]) 

return 

if(isblank(_con), "", _con) 

 

display with new table's column 

 

 

if not 

Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

@amitchandak  any suggestion please? 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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