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
mje
Frequent Visitor

Calculate percentage change of sum of categories

I'm looking for a Measure which summarizes the setup times needed to manufacture a variety of items on a 3D printer .

 

The printer manuactures all sorts of Items, made to order. Each Item has a record with a unique Item#, a delivery Date and a Category. Category identifies the amount of time it takes to set up the printer to manufacture this specific Category of Items. Each Category has a name ("1", "2", "3") and a value for Setup Time: "1" = 5 minutes, "2" = 10 minutes, "3" = 15 minutes, "5" = 30 minutes".

In order to minimize setup time, all Items of a specific Category are batched, meaning they are printed one after another.

 

The Measure I'm looking for should show the sum of Setup Times for all Categories displayed. In the example below there the table displays 12 Item#s from Categories 1, 2, 3 and 5. The Measure should show 60: the sum of 5,  10, 15 and 30.

 

Data are organized in 2 tables:

- "Orders", containing Item#, Date and Categor

- "Setup", containing Category and SetupTime.

 

Any ideas?

 

Best regards,

Michael

 

OrderData.PNGOrderSelection.PNG

 

1 ACCEPTED SOLUTION

Thank you Ashish, that's exactly what I was looking for.

View solution in original post

7 REPLIES 7
Ashish_Mathur
Super User
Super User

Hi,

 

Share the two datasets in a format that can be pasted in MS Excel.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Thanks Ashish. This is the data:

 

Table "Orders"

Item#YearMonthDayCategory
2001320176205
214642017612
214652017611
214662017611
214672017615
214682017615
214982017612
214992017612
215212017612
215222017612
215232017625
215532017613

 

Table "Setup"

CategoryTime
15
26
310
415
520

Hi,

 

So, in a card visual, you want the result to be 5+6+10+20=41.  15 should be left out because category 4 is not present in the first Table.  Am i correct? 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Yes, that's it exactly.

Hi,

 

Try this

 

=CALCULATE(SUM(Setup[Time]),Setup[Category] IN VALUES(Orders[Category]))

 

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Thank you Ashish, that's exactly what I was looking for.

You are welcome.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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