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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
delphinew
Helper III
Helper III

how to create a calculated dimension on a chart or on a matrix

Hi everyone, 

 

I am trying to create a calculated dimension for a specific matrix only based on an existing dimension, something like this : =if(wildmatch(TIERS_Cat.3,'*Ouvertures*')=1,'Ouvertures','Organique')

Capture.PNG

as you can see, first I have the calculated dimension, and then I have the reference dimension (TIERS_Cat.3). and before the calculated dimension, I have another dimension. 

How could I do that ?

 

thank you very much !

1 REPLY 1
amitchandak
Super User
Super User

You can do it with If/Switch true and containsstring

https://docs.microsoft.com/en-us/dax/containsstring-function-dax

New column =

Switch ( True(),

containsstring([TIERS_Cat.3],"Ouvertures"), "Ouvertures",

"Organique"

)

Helpful resources

Announcements
Fabcon_Europe_Social_Bogo

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.