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
danivillegas
New Member

Group by

Hi,

I am blocked and I don't know how to move forward, and I would appreciate any help you can give me:

 

I need to relate the sales of a ticket to a table where sales kits appear.

 

The sales ticket table shows a ticket ID, the products sold, their description and the sale amount and quantity.

In the Kits table, there is a Kit ID, the name of the Kit, the ID of the products that make up the Kit, and their description.

 

I need to be able to search in each ticket, if all the products on the ticket are those that are part of a Kit.

 

Then I need you to add up the sales volume of each Kit, and the number of Kits sold in a period of time. If there is no Kit, I would like to sum the individual items.

 

I am trying with Group by and Contains, but I am not able to advance.

 

Can you help me?

Thank you very much in advance for your help!

Dani

 

Imagen1.png

2 REPLIES 2
lbendlin
Super User
Super User

This is the usual "filtering up" pattern.  Use measures with variables to implement your logic. Please provide sample data in usable format (not as a picture) and show the expected outcome.

Thank you very much @lbendlin !

 

Please find here a sample data and an explantation of what I need: https://1drv.ms/x/s!AgKUMKxrJ7KCi3aYqPik9sVLrZ7H?e=FcFqTO

 

Thanks for your help!

Regards

Dani

 

 

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.