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
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
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.