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
StoryofData
Helper III
Helper III

Transform Table with group, count and pivot

I need to completely transform a table from the top to the bottom one

I was looking at grouping but it seems pretty limited and not efficient for what I need to do, can anyone help me please?

 

 

StoryofData_0-1680303158422.png

 

 

 

1 ACCEPTED SOLUTION

Hi,

You may download my PBI file from here.

Hope this helps.

Untitled.png


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

View solution in original post

8 REPLIES 8
Ashish_Mathur
Super User
Super User

Hi,

I cannot understand how you arrived at the result table from the input table.  In an MS Excel file, share input data in a worksheet and in another one show the expected result with an explanation.  I will try to translate your logic/formulas to the DAX language.


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

Hi Ashish, thank you for questioning me, that made me think and I came up with a partial solve thanks to @amitchandak suggestion down below. I still need help though. 

 

My desired outcome is this chart, I am open to other suggestions on visial, the goal is to show # of cases opened&closed and how many of them were substantiated.

 

StoryofData_0-1680355248727.png

what I currently have is this:

StoryofData_1-1680355292074.png

two relationship calculations - cases opened and cases closed but I cannot figure out how to make my power bi stacked chart look like the one I created in excel.

 

My raw data looks like this:

StoryofData_2-1680355576330.png

 

Hi,

Share data in a format the can be pasted in an MS Excel file.


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

Hi Ashish, will this work? 

 

 

CaseNumberDateOpenedDateClosedFunctionOutcome
L1-2212/5/2022 HR 
L1-2312/5/20223/14/2023HRSubstantiated
L1-2412/5/20221/13/2023HR 
L1-2512/5/20221/12/2023HR 
L1-199/6/202212/14/2022HR 
L1-209/23/202211/10/2022HRSubstantiated
L1-219/29/202212/5/2022HR 
L1-309/29/202210/10/2022Finance 
     

Hi,

You may download my PBI file from here.

Hope this helps.

Untitled.png


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

Thank you so much!

You are welcome.


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

@StoryofData , refer if the approach of this blog or attached file can help

 

Power BI: HR Analytics - Employees as on Date : https://youtu.be/e6Y-l_JtCq4
https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-tr...

 

 

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.