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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

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...

 

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.