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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.