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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Antmkjr
Helper V
Helper V

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

Top Kudoed Authors