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

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

Reply
sathyaganapathi
Regular Visitor

Setting hierarchy for the columns in table.

Hi all,

I have data in table  with Date and dept as shown below.   I want to set the hierarchy to the column to drill down data from year > month > Dept in power BI display.  Please help.

 

example Data table:

From:

InputDateTimeDept
11/4/2022 9:52:00 PMRoute
11/4/2022 7:06:00 PMDrilling
11/4/2022 3:07:00 PMSM
11/4/2022 11:52:00 AMSM
11/4/2022 7:53:00 AMCopper
11/4/2022 7:53:00 AMSM
11/3/2022 6:08:00 PMDrilling
11/3/2022 2:08:00 PMCopper
10/31/2022 8:05:00 PMDrilling
10/31/2022 6:24:00 PMCopper
10/31/2022 11:35:00 AMPhoto
10/31/2022 10:13:00 AMSM
10/30/2022 10:41:00 PMDrilling
10/30/2022 7:36:00 PMCopper
10/30/2022 8:04:00 AMDrilling
10/27/2022 10:31:00 PMCopper
10/25/2022 9:46:00 PMDrilling
10/24/2022 3:57:00 PMRelam
10/24/2022 1:48:00 PMRelam

 

To:

YearMonthDept
2022JanuaryCopper
2022JanuaryDrilling
2022JanuaryLab
2022JanuaryPhoto
2022JanuaryRelam
2022JanuaryRoute
2022JanuarySF
2022JanuarySM
2022JanuaryTech
2022FebruaryCopper
2022FebruaryDrilling
2022FebruaryLab
2022FebruaryLegend
2022FebruaryPECAM
2022FebruaryPhoto
2022FebruaryRelam
2022FebruarySF
2022FebruarySM
2022MarchCopper
2022MarchDrilling
2022MarchLab
2022MarchLegend
2022MarchPECAM
2022MarchPhoto
2022MarchRelam
2022MarchSM

 

 

1 ACCEPTED SOLUTION
Dinesh_Suranga
Continued Contributor
Continued Contributor

@sathyaganapathi 

Hi

First change data type of your InputDateTime column to Date. Then you can see date hierarchy in InputDateTime column. Add year and month from that date hierarchy to table and then add dep.

 

 

Dinesh_Suranga_0-1667649103937.png

 

 

If you have any question regarding this please reply to this massage.

Please accept this as the solution if this solved your issue.

Thank you.

View solution in original post

1 REPLY 1
Dinesh_Suranga
Continued Contributor
Continued Contributor

@sathyaganapathi 

Hi

First change data type of your InputDateTime column to Date. Then you can see date hierarchy in InputDateTime column. Add year and month from that date hierarchy to table and then add dep.

 

 

Dinesh_Suranga_0-1667649103937.png

 

 

If you have any question regarding this please reply to this massage.

Please accept this as the solution if this solved your issue.

Thank you.

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!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.

Top Solution Authors
Top Kudoed Authors