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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Rahul_Sharma
Frequent Visitor

Create visualization wherein sub categories in each column total can be shown under a Primary one

Hello Experts,

 

I am very new to Power BI, so please bear with me if I am slow on catching up on the solutions you all share.

 

I am looking to have the visualization wherein I can choose any one of the Primary Category and their Sub Category data is shown in the form of a chart. I know I can use the DAX and Calculate.. but the number of Primary and the sub category shown in the sample is just the tip of the iceberg. there is a possible combination of 399 so just was hoping if there was an easier route than to create additional 399 columns.

 

below pasted is a sample for quick reference. 

 

Thank you so much in advance for the help!! 

DateSegmentCategory 1Category 2Category 3Category 4Category 5Category 1.Sub Category 1Category 1.Sub Category 2Category 1.Sub Category 3Category 1.Sub Category 4Category 1.Sub Category 5Category 2.Sub Category 1Category 2.Sub Category 2Category 2.Sub Category 3Category 2.Sub Category 4Category 2.Sub Category 5Category 3.Category 3.Sub Category 1Category 3.Category 3.Sub Category 2Category 3.Category 3.Sub Category 3Category 3.Category 3.Sub Category 4Category 3.Category 3.Sub Category 5Category 4.Sub Category 1Category 4.Sub Category 2Category 4.Sub Category 3Category 4.Sub Category 4Category 4.Sub Category 5Category 5.Sub Category 1Category 5.Sub Category 2Category 5.Sub Category 3Category 5.Sub Category 4Category 5.Sub Category 5
12/1/20221100010111011111000001110100000
12/1/20222001100011100100011101101111010
12/1/20223011100111101100000110010100011
12/1/20224010110001101001110011010110111
12/1/20225110011110011011001100110010110
12/1/20226101101011010101101001101011010
12/1/20227100001101010110111101110000110
12/1/20228010111010010000010011111101000
12/1/20229001011010010011110011101101100
12/1/202210101000101100001101111001011100
12/2/202211100011101000000000010000011011
12/2/202212101101000101011111111100110011
12/2/202213110100010100001001100010000101
2 REPLIES 2
amitchandak
Super User
Super User

@Rahul_Sharma , You have to create a new column. Or Group. (Both will create a new column)

https://learn.microsoft.com/en-us/power-bi/create-reports/desktop-grouping-and-binning

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

Hello amitchandak,

 

First off, i really appreciate you taking the time off your schedule and sharing the response.

 

Well, the solution you suggested is when the group data is in rows. However, in my case my data to be grouped is is column. Moreover, for each category and sub category there is a value 0 or 1 is assigned. So how I wanted my groups to work is when I select a Primary category, it should first look only for those calls where it is 1 and ignore 0s. Then within the ones, when I select a Sub Category it should give a sum of calls where both Primary and sub category is 1.

 

I hope I am able to explain my query this time.

 

Thanks in advance!!

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors