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

February Power BI Update Carousel

Power BI Monthly Update - February 2026

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.