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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply

Switch Function based on Different column Reference

Hi All,

 

Hope you're ll doing good.

 

Just wanted to check if i can modify the below formula to switch for the differenct columns in differnt tables.

 

Currently its suming only for the Account name. I have differnt columns like. ServiceLine,Sector,MarketSegment.

 

Advisory SLI = VAR AdvSLI= IF([Advisory %]>0.1,1,0)
return
IF(HASONEVALUE(SLI[AccountName]),
AdvSLI,
SUMX(VALUES(SLI[AccountName]),AdvSLI))
 
Regards,
Ranjan
 
 
 
1 REPLY 1
mwegener
Most Valuable Professional
Most Valuable Professional

Hi @RanjanThammaiah ,

 

can you describe it with an example?

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials


Helpful resources

Announcements
Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.