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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Antmkjr
Post Patron
Post Patron

Amount of other products

https://drive.google.com/file/d/1NYg6zhVHJgWBvs2sMiTq5bOq2_B0W9xW/view?usp=sharing

 

In the above file,  is a report , with prod as filter ,

Eg if i select A,  table visual will show me , what other products have people who purchased A also bought.

 

Antmkjr_0-1666861524914.png

 

 

So in this case output when i select A as prod filter :

C

D

E

AnuTomy_0-1666771590013.png

If i select D, the output :

A

C

E

B

AnuTomy_1-1666771630596.png

Now I need to have Amount and distinct count of ID to the table

 

AnuTomy_2-1666771700222.png

Expected Output:

ProdAMount 
E15
D6
C8

 

 

 

1 ACCEPTED SOLUTION
daXtreme
Solution Sage
Solution Sage

File attached. Good modeling techniques go a long way toward making things easy... If this solutions meets your requirements, please mark it as the solution. It'll help others. Thanks. 

daXtreme_0-1666938071436.png

 

View solution in original post

2 REPLIES 2
daXtreme
Solution Sage
Solution Sage

File attached. Good modeling techniques go a long way toward making things easy... If this solutions meets your requirements, please mark it as the solution. It'll help others. Thanks. 

daXtreme_0-1666938071436.png

 

johnt75
Super User
Super User

You can create a couple of measures like

Sales Amount = IF( NOT ISBLANK([_]),CALCULATE( SUM( 'SALES'[Amount] ), REMOVEFILTERS( PROD ) ) )

Count of ID = IF( NOT ISBLANK([_]), CALCULATE( DISTINCTCOUNT( SALES[ID] ), REMOVEFILTERS( PROD ) ) )

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.