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
yogesh_shinde
New Member

Generate dynamic hierarchy from the selection of grouping type from slicer.

I am trying to work on a problem, which requires a column to be generated on the report when user selects a type of financial grouping.

There are 2 different tables, one table has the chart of account grouping which is static. The other table has the financial grouping which has only table names under the different levels which are required to be shown for the report.

 

Example - If user selects to view report by financial groupings then the levels of report should lookup to the column name in financial grouping table and then using that column name the respective column data from chart of accounts grouping should be populated in the report.

This is sample data for financial groupings reference table - 

CategoryFSG_L_1FSG_L_2FSG_L_0
AGL Sub-categoryGL SubTypeGL Account
AGL Sub-categoryGL SubTypeGL Account
AGL Sub-categoryGL SubTypeGL Account

chart of account grouping table - 

GL_Category_DescriptionGL_Sub_category_DescriptionGL_Type_DescriptionGL_SubType_Description
IncomeInvestment IncomeRealized Investment IncomeCurrency
AssetsCurrent AssetsOther Current AssetsOther Current Assets
AssetsCurrent AssetsInventoryInventory
AssetsCurrent AssetsOther Current AssetsOther Current Assets
AssetsCurrent AssetsLoan ReceivableRelated party
AssetsCurrent AssetsLoan ReceivableRelated party

In this case if financial grouping option is selected, then Hierarchy on reports should be as follows - 

Category ( From Chart of Accounts - Static )

-- FSG_L_1 = GL Sub-Category => Refers to GL_Sub_category_Description
----- FSG_L_2 = GL SubType => GL_SubType_Description

I just want to explore if there is workaround to achieve this type of requirement on Power BI.

2 REPLIES 2
V-lianl-msft
Community Support
Community Support

Hi @yogesh_shinde ,

 

As far as I know, Power BI doesn't have support this now. You can only add the hierarchy manually instead of relying on slicers. Another workaround is to use the bookmark&button to switch the visual.https://docs.microsoft.com/en-us/power-bi/create-reports/desktop-bookmarks?tabs=powerbi-desktop 


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

lbendlin
Super User
Super User

Sounds like you want to explore calculation groups.  Note that you cannot create columns on the fly but you can emulate that behavior with measures and calculation groups.

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.