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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
ROG
Responsive Resident
Responsive Resident

multiples statements in a calculated column.

Hey guys, I have the calculated column below, which gives me two options "High Tier" and "Low Tier, but I also need Unknown, which means, these high and low tiers needs to exclude the BrandType = Unknown, and the final outcome should give me:   "High Tier" and "Low Tier and "Unknown". What would be logic here, please?

 

Tier Type = IF(imei_dashboard[high_tier_ind] = 1, "High Tier","Low Tier")
 
Thanks a lot!
1 ACCEPTED SOLUTION

Please create calculated column not measure 


Did I answer your question? If so, please mark my post as a solution!


Proud to be a Super User!




LinkedIn Icon
Muhammad Hasnain



View solution in original post

4 REPLIES 4
mh2587
Super User
Super User

Tier Type = //Try this one might help you
    IF(
        imei_dashboard[BrandType] = "Unknown", 
        "Unknown",
        IF(
            imei_dashboard[high_tier_ind] = 1, 
            "High Tier",
            IF(
                imei_dashboard[high_tier_ind] = 0, 
                "Low Tier",
                BLANK()  // Handle cases where neither condition is met
            )
        )
    )

Did I answer your question? If so, please mark my post as a solution!


Proud to be a Super User!




LinkedIn Icon
Muhammad Hasnain



ROG
Responsive Resident
Responsive Resident

Thank you so much @mh2587 

 

I'm getting the below error. Can you please advice?

 

A single value for column 'high_tier_ind' in table 'imei_dashboard' cannot be determined. This can happen when a measure formula refers to a column that contains many values without specifying an aggregation such as min, max, count, or sum to get a single result.

 

 

 

Note: The column 'high_tier_ind' in table 'imei_dashboard' is 0 or 1.

Please create calculated column not measure 


Did I answer your question? If so, please mark my post as a solution!


Proud to be a Super User!




LinkedIn Icon
Muhammad Hasnain



ROG
Responsive Resident
Responsive Resident

Thank you so much!!! @mh2587 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.