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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
amalrio
Helper V
Helper V

How to get a certain visual representation using a measure

Hi Gurus, 

 

I have copied an image below, what I want is to create a measure to split the text column by comma(,) and show in a matrix visual like below. I do not want to enter new rows or columns into my original table, Is this even possible. I have seen text dilimitted by measures but I have less knowledge to do it. Hope you can help.

 

Below is my data and required output.

 

amalrio_0-1605144126444.png

 

4 REPLIES 4
amitchandak
Super User
Super User

@amalrio , You have split the column Text into rows. https://www.tutorialgateway.org/how-to-split-columns-in-power-bi/

Then take that on the row and year a column. Create a color measure 

Measure = countrows(Table)

color measure = if([Measure] >0, "Blue", "White")

Use this measure for both for font and background conditional formatting using "field value" option

 

refer

https://radacad.com/dax-and-conditional-formatting-better-together-find-the-biggest-and-smallest-num...
https://docs.microsoft.com/en-us/power-bi/desktop-conditional-table-formatting#color-by-color-values

@amitchandak ,

 

As I mentioned in there, I do not want to add any further columns into the model, there should be a way to split a cell using DAX measure, I am thinking of SWITCH but have not got enough technical knowladge  🙂

@amalrio 
You do not need to create a complex measure, matrix and 2 measure should do the trick using conditional format.

 

V-pazhen-msft_0-1605252426805.png

See attached sample pbix if needed.


Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.

 

@V-pazhen-msft ,

 

My challange is to split the cell wich is comma seperated and show it it in a diffrent line in a matrix, wtihout making changes to the data table.

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

MayPowerBICarousel

Power BI Monthly Update - May 2024

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.