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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
fusiee_
Regular Visitor

Finding Multiple values in columns and rows and Calculating for each value as category

Hi Everyone, 

 

I have a fairly complicated task where I need help. I have a task where I have a data about each product data and and how long each department took to complete their task and then compare which department takes longer to complete its task. The issue is based on certain tasks and conditions same department name appears more than one columns or rows.. For example.

 

Product ID ( unique)Commercial Data Task 1 ( date to complete)Commercial Data Task 1( department)Commercial Data Task2 ( date)Commercial Data Task 2(department)Technical Data task 1( days)Technical DataData Task 1(department)
Apple10 dayssales3 daysmarketing10 dayssales
Orange5 daysIT36 dayssales5IT

 

So it looks like certain tasks have same department but different times.  So my task is to create a dax to find out how each department performs. in the view it will have lets say commerical data --> all the departments involved in this task and to see which department takes longer to complete their task when compared with other departments in total. The goal is make a visual where shows commerical data departments and comparing their each performance to find out which department takes longer to complete the task. 

 

I cant use unpivot cause its one table with over 20'000 rows and more than 100+ columns

 

I hope this is clear enough explaination. If you can help me that would be great. LOOKing forward to hearing from you. 

 

Best,

</>

 

 

 

2 REPLIES 2
fusiee_
Regular Visitor

Hi @Yolo ZU

 

Unfortunalty this is not possible cause the table has over 20'000 rows and over 100+ columns. Is there no other way to search and find these valuse and sum it up by department? 

 

Best,

Ahmet 

v-xinruzhu-msft
Community Support
Community Support

Hi  @fusiee_ 

 

According to the image you provided, this table needs to be reversed, this table cannot directly use DAX to achieve the desired effect, have you tried to transpose the table in Power Query?

 Please refer to the following links:

Unpivot columns - Power Query | Microsoft Learn

Best Regards,

Yolo Zhu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.