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
matrix_user
Helper III
Helper III

DAX used in calculated column for slicer.

Hi PBI Users,

 

I saw this video on building dynamic slicers but now I can't find it and so I am unable to post a link on this Community Forums. I have been able to download a sample pbix file so maybe someone will recognise it.

matrix_user_1-1643069077981.png

 

I am focusing on build dynamic slicers at this point in time and I wanted to understand how in this video created, the youtuber creater the 'Desc' column. The 'Desc' column is some kind of referene to the 'Period' column.  For example, 'W1 2019' would be selected as 'W' in the slicer. '2021' would be 'Y' and 'Jan 2019' would be 'M'.

 

Does anyone know the DAX I could use to use to build the 'Desc' column? 

 

matrix_user_0-1643068743715.png

 

Thank you in advance.

5 REPLIES 5
matrix_user
Helper III
Helper III

Is anyone able to help me with my original question? Still stuck on it 😞

Thank you,

matrix_user
Helper III
Helper III

Hi Amine, 

The 'Index Dexc' is the order of how 'Desc' appears on the slicer, on Power BI. 

'2019' = 1,

'Q2 2021' = 2,

'May 2019' = 3

'W32 2021' = 4

OH ok I see, the images you uploaded are from the Youtuber and you want to create something similar with your model is it not? if so, send us a sample of your model or are you looking for a tutorial..!

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

I dont have a sample of mine at the moment. I do have the other sample that was used on YouTube . How do I send it?

aj1973
Community Champion
Community Champion

Hi @matrix_user 

Does this column indicate the type of the period

aj1973_0-1643071318199.png

 

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

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.