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
Anonymous
Not applicable

Convert values of matrix from number to text

Hi Team,

 

I have created an matrix and in the matrix, I have column called Traffic Spikes. That column have values of 0 or 1. I put that column in the values field on matrix. Then I'm doing Max of Traffic Spikes. Is there way to turn 0 or 1 to Yes or No without impacting the Max of Traffic Spikes? I would like to keep the maximum 

 

Thanks

1 ACCEPTED SOLUTION

@Anonymous try this

 

Yes or No Measure = 
IF ( MAX ( Table[Traffic Spikes] ) = 0, "No" ,
IF ( MAX ( Table[Traffic Spikes] ) = 1, "Yes" )
)

 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

View solution in original post

6 REPLIES 6
parry2k
Super User
Super User

@Anonymous you can create a measure to get yes and no value

Yes and No Measure = 
IF ( MAX ( Table[Traffic Spikes] ) = 0, "No", "Yes" )

 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Anonymous
Not applicable

@parry2k I tried that. But messes up my Matrix.

aftermesaure.PNGBeforeMeasure.PNG

@Anonymous try this

 

Yes or No Measure = 
IF ( MAX ( Table[Traffic Spikes] ) = 0, "No" ,
IF ( MAX ( Table[Traffic Spikes] ) = 1, "Yes" )
)

 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Anonymous
Not applicable

@parry2k I think i found the issue. I have an filter which looks at critical sites for traffic. When I use that filter when measure is selected in value column, Filter doe not work with measure. It works without messure.  Do i need to add something to measure so Filter will work?

@Anonymous so surely I don't see the whole picture, if you are ok, share pbix file wiht sample data and remove any sensitive information before sharing.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Anonymous
Not applicable

@parry2k I can try. I have powerbi with million rows of data. Tough to share the file. I have column in data called CriticalSiteYn. CriticalSiteColumn is in different table. Value of that column is = Critical or null. Do I need to create an another measure so that criticalsite will work on that measure we just created. If i remove the filter, measures works fine on all data but doesn't filter when selecting critical.  Critical.PNGCriticalfilter.PNG

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.