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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Varshi288
Resolver I
Resolver I

Sum of % from two visuals with filters

Hi  Everyone,

 

I have two visuals where I calculate the Percentage for Standard products(Excl CSM) and Customer Specific Products (CSM). There is a filter on visuals i.e  CSM code = Blank for Excl CSM and CSM Code = X for CSM. I need to show combined Percentages in another visual. any help.

TP incr % CSM = DIVIDE([TP incr CSM],[Cov TP CSM]-[TP incr CSM])    
TP incr % Vs PrY = DIVIDE([TP incr PrY],[Cov TP]-[TP incr PrY])

I was trying with If statement. but couldn't get it. Any help.

 

Varshi288_0-1652776134821.png

 

 

1 ACCEPTED SOLUTION
MFelix
Super User
Super User

Hi @Varshi288 ,

 

In this case you need to add the filtering on the calculation of the new measure something similar to this:

CSM + CSM EXCLUDE =
CALCULATE([TP incr % CSM] , Table[CSM Code] = X) + 
CALCULATE([TP incr % Vs PrY], CSM code = Blank()) 

 

Not sure if I selected the correct measures for the filters, but the sintax is this one.


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



View solution in original post

2 REPLIES 2
Varshi288
Resolver I
Resolver I

Hi  @MFelix ,

 

I exactly used the same logic before you replied. Thanks

MFelix
Super User
Super User

Hi @Varshi288 ,

 

In this case you need to add the filtering on the calculation of the new measure something similar to this:

CSM + CSM EXCLUDE =
CALCULATE([TP incr % CSM] , Table[CSM Code] = X) + 
CALCULATE([TP incr % Vs PrY], CSM code = Blank()) 

 

Not sure if I selected the correct measures for the filters, but the sintax is this one.


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Helpful resources

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