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
nostradukemas
Regular Visitor

Applying a rule to blanks

I have the below files that are joined on SubAdvisorID.

 

map.PNG

I'm working on a clustered bar chart that shows the Inflow (Inflow_Outflow) by Firm (Sub_Advisor_Key). However, not every entry on the Inflow_Outflow sheet has an associated Firm - which leaves "Blank" as my second largest firm.

 

Is it possible to create a rule that if a row on Inflow_Outflow doesn't have an associated Firm, I can choose a different field for it to group into - ModelName, for example - instead of just rolling up as Blank?

1 REPLY 1
Cmcmahan
Resident Rockstar
Resident Rockstar

You'll likely need a calculated column for this.  IIRC, you can't cluster by the result of a measure.  If you can group by a measure instead of a column, then you can use SELECTEDVALUE instead of RELATED. 

 

ClusterGroup = IF( RELATED([Firm]) <> BLANK(), RELATED([Firm]), [ModelName])

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.