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
daxyco
Regular Visitor

"Advanced" Filtering data in a report

I have a large amount of similarly formated data that I need to be able to filter out per request while displaying a report (so not in Power Query). The data is related to power plants, many of them. The data consists of a large number of *.csv files that all have values for 30 years (planning period). Powerplants all belong to an electrical grid node, are of a certain type of tech (wind, solar, thermal...), use a certain kind of fuel (gas, black coal, brown coal...), etc.

 

I need to be able to show visuals for the sum of all powerplants in question, but also to do some filtering per any of these properties I listed. So, I might need to filter out all powerplants belonging to a certain node, or thermal powerplants that use black coal as fuel, etc. I have noticed that slicers can do what i need, but in my case they only do filtering by year, because all my data is structured so as that the first row is the header row, and then the values for each year of the planning horizon follow. But I also need to keep filtering by year. Is there a way to do this? I'm attaching the sample of my data, as well as the "dimension table" that carries the information about all of the powerplants that are relevant for my use case.

 

Thanks in advance for any help,

Danilo

dimension table.pngdimension table.png

 

1 ACCEPTED SOLUTION
v-yadongf-msft
Community Support
Community Support

Hi @daxyco ,

 

This is my test table1:

vyadongfmsft_0-1668477284423.png

 

Test table2:

vyadongfmsft_1-1668477315251.png

 

Transform table2 in Power Query. Select Date column - Transform tab - Unpivot other columns.

vyadongfmsft_2-1668477445449.png

 

You will get a table like this, close and apply to Power BI:

vyadongfmsft_3-1668477536644.png

 

Create one to many relationship between two test tables:

vyadongfmsft_4-1668477648019.png

 

Create some slicers from table2 and create a card visual from table1:

vyadongfmsft_5-1668477747230.png

You can filter report by any of these properties:

vyadongfmsft_6-1668477768669.png

 

Best regards,

Yadong Fang

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

4 REPLIES 4
daxyco
Regular Visitor

That's exactly what I needed, thanks! The visual I posted was from another table, that's why there was a difference for each year.

v-yadongf-msft
Community Support
Community Support

Hi @daxyco ,

 

Is this the result you want?

vyadongfmsft_0-1668502101641.png

 

The value for every year is the same.

 

Best regards,

Yadong Fang

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

v-yadongf-msft
Community Support
Community Support

Hi @daxyco ,

 

This is my test table1:

vyadongfmsft_0-1668477284423.png

 

Test table2:

vyadongfmsft_1-1668477315251.png

 

Transform table2 in Power Query. Select Date column - Transform tab - Unpivot other columns.

vyadongfmsft_2-1668477445449.png

 

You will get a table like this, close and apply to Power BI:

vyadongfmsft_3-1668477536644.png

 

Create one to many relationship between two test tables:

vyadongfmsft_4-1668477648019.png

 

Create some slicers from table2 and create a card visual from table1:

vyadongfmsft_5-1668477747230.png

You can filter report by any of these properties:

vyadongfmsft_6-1668477768669.png

 

Best regards,

Yadong Fang

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

@v-yadongf-msft seems to be working, thanks! I know I might be asking for too much now, but is it possible to somehow keep this type of view in stacked column chart visual? This way I can already see how much each type of plant contributes to total generation, but without having their generation in separate columns, I can't see a way of creating this kind of a visual. I guess I could create two separate queries, one being unpivoted as you mentioned, one pivoted (as the original data) and have two separate visuals for each of them, but I'm guessing the people looking at the report would like to see as much detail in one chart instead of having to look at two different charts.

generation by type.png

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