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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Calculated Column Failure

Hello,

I am trying to calculate whether a distributor of mine is on my program or not. This can be calculated by seeing if the "gwp_distributor_lookup" is blank. If it is, then the distributor is not on my program. However, when I program my logic, the calculated column does not seem to calculating.

 

The below screenshot fairly well demonstrates my issue.

jfeddes_1-1656016380368.png

 

 

planned_distributor_check = 
IF(ISBLANK('2022_plan (10-2021)'[gwp_distributor_lookup])=True,"Planned For - Not on GWP", 
    IF(ISBLANK('2022_plan (10-2021)'[Distributor])=TRUE,"Not Planned For - on GWP","Planned For - on GWP"))

 

I can't use a measure because I need to incorporate the calculations into a measure. To my knowledge, you cannot use a measure in a slicer.

 

Any and all help would be greatly appreciated!

 

Thanks,

Joel

1 ACCEPTED SOLUTION
v-rongtiep-msft
Community Support
Community Support

Hi @Anonymous ,

Please refer to my pbix file to see if it helps you.

Create a column.

planned_distributor_check!! =
IF (
    ( 'Table'[gwp_distributor_llookup] ) = BLANK ()
        || 'Table'[Contributor] = BLANK (),
    "Planned For - Not on GWP",
    "Planned For - on GWP"
)

vpollymsft_0-1656299438979.png

If it does not help, please provide some sample data and your desired output (Preferably in picture form)

 

Best Regards

Community Support Team _ Polly

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-rongtiep-msft
Community Support
Community Support

Hi @Anonymous ,

Please refer to my pbix file to see if it helps you.

Create a column.

planned_distributor_check!! =
IF (
    ( 'Table'[gwp_distributor_llookup] ) = BLANK ()
        || 'Table'[Contributor] = BLANK (),
    "Planned For - Not on GWP",
    "Planned For - on GWP"
)

vpollymsft_0-1656299438979.png

If it does not help, please provide some sample data and your desired output (Preferably in picture form)

 

Best Regards

Community Support Team _ Polly

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Thanks Polly!!! Works great

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.