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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply

Measure Help

Hi All,

 

Can someone help me in correcting the below formula(received from Amith)? Where there is no relationship between the table.

 

Measure = CALCULATE([TVPS],
FILTER('S&P',
'S&P'[SubServiceLineGroupingDesc]in VALUES('Comparision SSL'[SSL])))
 

basically when I cross filter from Adv Solution on first slicer and Audit on the second slicer. I should be getting the count value is 14,471,559. but there some problems with the formula where I cannot fix to get the correct value.

 

Sample Report

 

Cross selling2.png

 

 

 

 

 

6 REPLIES 6
amitchandak
Super User
Super User

@RanjanThammaiah , for Adv Solution you do not have Audit Data. Both slicer are filtering then there is not data

 

Screenshot 2020-07-03 11.31.44.png

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak Yes, I don't have any data. The table(Comparision SSL) I have created to get the intersecting count.(Without that table I can't get the Cross-selling/Count by SSL)

 

 

For Eg.

 

Cross selling3.png

 

 

Cross-selling formula that I have used to get the count is.

 

Cross Selling =
VAR InitialPurchase =VALUES('S&P'[UDN])
VAR ComparisionPurchase =CALCULATETABLE(VALUES('S&P'[UDN]),
ALLSELECTED(SSL),
TREATAS(VALUES('Comparision SSL'[SSL]),'S&P'[SubServiceLineGroupingDesc]))
Return
IF(SELECTEDVALUE(SSL[SSL])=SELECTEDVALUE('Comparision SSL'[SSL- Copy]),
BLANK(),
COUNTROWS(INTERSECT( InitialPurchase, ComparisionPurchase)))

 

 

This is what I was working on to get the count(Cross-selling) and I was looking to get the total value for each intersecting count.

 

Cross selling5.png

AllisonKennedy
Super User
Super User

Can you provide links to other posts that you've made relating to this topic?

Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

AllisonKennedy
Super User
Super User

This clarifies your question a little bit, but I'm still not sure where the 14,471,559 value should be coming from? Something like this might get you closer: Measure = SUMX(
FILTER(ALL('S&P'),
'S&P'[SubServiceLineGroupingDesc]in VALUES('Comparision SSL'[SSL])),'S&P'[TotalValueOfPotentialSale])

But I don't know what this number is trying to show, so not sure what additional filters need to be placed on it.

Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

Hi @AllisonKennedy 

 

this started giving the total of Audit Value.

In the below SS hope you can make the difference.

Whenever I cross filter from both the slicer I should be getting the count and the value.

 

Sample Report

Cross selling2.png

 

The value I am getting is the Total value of the Audit. can see the same value bit the count changes.

Cross selling1.png

 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors