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 August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Make two separate formatted texts by using SWITCH

Hello,

My measure is

 

Accept / Reject sign =
    SWITCH(TRUE(),
    VALUES('Chart'[Chart type]) = "Accept", "ACCEPT,           <- this needs to be font 16
    VALUES('Chart'[Chart type]) = "Reject", "REJECT"             <- this needs to be font 12
    )
 
Is it something I can achieve? 
3 REPLIES 3
selimovd
Super User
Super User

Hello @Anonymous ,

 

what exactly do you want to do? Do you want to create a measure or a calculated column?

In general VALUES returns a column with single values. So this approach would only work if only one value is returned.

 

I would try something like this:

Accept / Reject sign =
SWITCH (
    MAX ( 'Chart'[Chart type] ),
    "Accept", "ACCEPT",
    "Reject", "REJECT"
)

 

You can also archive the same with the following approach:

Accept / Reject sign = UPPER ( MAX ( 'Chart'[Chart type] ) )

If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍

Best regards
Denis

Blog: WhatTheFact.bi
Follow me: twitter.com/DenSelimovic

Anonymous
Not applicable

I'd like just to have a sign, if chart will be for accept, it will have a sign "Accept" above the chart, if Reject, then Reject, but I'd like to have different formats on these signs and avoid using bookmarks

amitchandak
Super User
Super User

@Anonymous , As of now there is no option for font size formatting

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

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.