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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Chart Drilldown - Using different data sources at each level

I am working from a table which has the below structure:

Raymz112_1-1687094279001.png

 

I would like to create a drilldown visual where each layer looks at the total numeric value based on that selection. For example:

  • Top layer is National 1 and it shows total numeric value for national_1 data level
  • User drills down in the visual to England (national_3) and I would then want total numeric value for data level 'national_3' to be applied for where 'National_3' = England
  • User then drills down into Regions within England and I would then want total numeric value for data level 'region' where 'national_3' = England
  • And then so on...
  • The data hierarchy is (top to bottom level) - National_1 -> National_3 -> Region -> County -> Local Authority
  • I am unable to SUM from the lowest value as SUM local authority doesn't equal the total value in County. Each 'data_level' looks at a different source data

I would really appreciate some help on this, I have been stuck on this problem all week. 

2 REPLIES 2
Anonymous
Not applicable

Hi  @Anonymous thank you for responding. Unfortunately your meothod doesn't work. Here is a link to my sample dataset - 

https://docs.google.com/spreadsheets/d/1AU70ei1Oi7bfMSf0vMtxU9DY1mGlIx1bYkPQHJ7eJKM/edit?usp=sharing



The blow is the measure which I created which almost appears to work

RETURN
SWITCH(TRUE()
 
----COUNTRY
,HASONEVALUE(Consolidated_LLMIT[national_3]) && HASONEVALUE(Consolidated_LLMIT[region]) = FALSE(),
CALCULATE(SUM(Consolidated_LLMIT[numeric_value]),Consolidated_LLMIT[data_level] = Consolidated_LLMIT[national_3])
 
----REGION
,HASONEVALUE(Consolidated_LLMIT[region]) && HASONEVALUE(Consolidated_LLMIT[county]) = FALSE(),
CALCULATE(SUM(Consolidated_LLMIT[numeric_value]),Consolidated_LLMIT[data_level] = Consolidated_LLMIT[region])
 
----COUNTY
,HASONEVALUE(Consolidated_LLMIT[county]) && HASONEVALUE(Consolidated_LLMIT[local_authority]) = FALSE(),
CALCULATE(SUM(Consolidated_LLMIT[numeric_value]),Consolidated_LLMIT[data_level] = Consolidated_LLMIT[county])
 
----LOCAL AUTHORITY
,HASONEVALUE(Consolidated_LLMIT[local_authority]),
CALCULATE(SUM(Consolidated_LLMIT[numeric_value]),Consolidated_LLMIT[data_level] = Consolidated_LLMIT[local_authority])
,0)
Anonymous
Not applicable

Hi @Anonymous ,

You can use the "Drilldown" feature in Power BI.

Please have a try.

Here are the steps you can follow:

1. Create a new visual in Power BI and add the relevant data fields to the visual.

2. Click on the "Drilldown" button in the visualizations pane.

3. In the "Drilldown" pane, select the hierarchy you want to use for the drilldown. In your case, this would be the hierarchy from National_1 to Local Authority.

4. Click on the "Apply" button to apply the drilldown hierarchy to the visual.

5. Now, when you click on a data point in the visual, it will drill down to the next level in the hierarchy and show the total numeric value for that level.

6. To show the total numeric value for each level in the hierarchy, you can add a "Total" column to your data table and use the "SUM" function to calculate the total for each level.

 

How to Get Your Question Answered Quickly 

 

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

 

Best Regards
Community Support Team _ Rongtie

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

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.