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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

DAX Calculation with Multiple Slicers and Tables

Community, 

I am seeking help with a calculation (the DAX) that includes using a slicer and multiple tables. I hope that I have provided enough information to get the help I need.

 

The calculation we are seeking is to multiple the "Raw Data" in Table 1 by a "Multiplier" in Table 4. The multiplier is determined by the "Multiplier ID" in Table 4 selected in a slicer of  "Multiplier ID" in the table.

 

Data Model Information:

Below are the tables and relationships used in this example.

Table 1 Data ID is related to Table 2 Data ID

Table 2 Attitude ID is related to Table 4 Attitude ID

Table 3 is not used in the example

TableWT.JPG

 

 

 

In this example "Attitude ID" 1,2,and 3 can use "Multiplier ID" 1 or 2, I'm trying to use the slicer to select which "multiplier" is used on each the "Raw Data" based on the "Attitude ID".

 

Below is what I would like to return;

In Table 1,  "Data ID" 1 and 5 share the same "Attitude ID" (1) in Table 2,

in Table 4 "Attitude ID" 1 can use "Multiplier ID" 1 or 2.

If I have a slicer of the "Multiplier ID" and select 1,

the calculation (named DataMultiplies) for "Data ID" 1 should return 5 (25*0.2, "Raw Data" * "Multiplier") and for "Data ID" 5 should return 9 (30*0.3, "Raw Data" * "Multiplier")

 

Any help with the DAX for this is greatly appreciated!

 

 

 

 

1 ACCEPTED SOLUTION

@Anonymous use following measure

 

Raw data x multipler = SUM( 'Table 1'[Raw Data] ) * MAX( 'Table 4'[Mupltipier] )


Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

View solution in original post

6 REPLIES 6
parry2k
Super User
Super User

@Anonymous if you can share your sample data in pbix file using one drive/google drive, I will get you the solution.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Anonymous
Not applicable

@parry2k ,

 

Click below for BI file

 

Test BI File

Anonymous
Not applicable

@parry2k 

 

Link to PBIX file (first post incorrect)

 

Click Here

@Anonymous hey try to download the file but taking forever. you can send it by email and emai address is in my signature.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

@Anonymous use following measure

 

Raw data x multipler = SUM( 'Table 1'[Raw Data] ) * MAX( 'Table 4'[Mupltipier] )


Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Anonymous
Not applicable

@parry2k ,

Thank you so much for the help on this!!

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.

Top Solution Authors