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! Learn more

Reply
JaipalAnu
Helper III
Helper III

How to add Group by column in single table in Power Bi desktop?

Hi All,

 

I am creating one report as per the requirement, the requirement is like below screenshot. So, the Card type is showing as grouping with multiple columns. But with in the column it is showing values also under column. I am not sure whether we can show like this in Power bi table or matrix visual, can you please help how to get it?

JaipalAnu_0-1703576093415.png

 

1 ACCEPTED SOLUTION
v-zhangti
Community Support
Community Support

Hi, @JaipalAnu 

 

After testing, there may not be a way to display this in a single table. But you can try the following method.

Table:

New table = 
SUMMARIZE ('Table','Table'[Type],'Table'[External Chargeback Reason],
    "Card Type Grouping", "TOTAL RETAIL AND WHOLESALE",
    "Count", CALCULATE(SUM('Table'[Count]),ALLEXCEPT ('Table', 'Table'[External Chargeback Reason], 'Table'[Type])),
    "Amount",CALCULATE(SUM('Table'[Amount]),ALLEXCEPT ( 'Table', 'Table'[External Chargeback Reason], 'Table'[Type])))

vzhangti_1-1703644380243.png

Result:

vzhangti_2-1703644447944.png

Is this the result you expect? Please see the attached document.

 

Best Regards,

Community Support Team _Charlotte

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

View solution in original post

2 REPLIES 2
v-zhangti
Community Support
Community Support

Hi, @JaipalAnu 

 

After testing, there may not be a way to display this in a single table. But you can try the following method.

Table:

New table = 
SUMMARIZE ('Table','Table'[Type],'Table'[External Chargeback Reason],
    "Card Type Grouping", "TOTAL RETAIL AND WHOLESALE",
    "Count", CALCULATE(SUM('Table'[Count]),ALLEXCEPT ('Table', 'Table'[External Chargeback Reason], 'Table'[Type])),
    "Amount",CALCULATE(SUM('Table'[Amount]),ALLEXCEPT ( 'Table', 'Table'[External Chargeback Reason], 'Table'[Type])))

vzhangti_1-1703644380243.png

Result:

vzhangti_2-1703644447944.png

Is this the result you expect? Please see the attached document.

 

Best Regards,

Community Support Team _Charlotte

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

Ritaf1983
Super User
Super User

Hi @JaipalAnu 
It seems regular hierarchical matrix like at the linked tutorial :

https://www.youtube.com/watch?v=qphVQdI5rQs

 

For more detailed and specific suggestions provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-...

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

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

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.