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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
yanisyes
Frequent Visitor

filter a table by clicking on a column of a stacked column chart

Hello,

 

I've created two measure (measure=calculate(countrow),conso(cat)="forecast,measure2=calculate(countrow),conso(cat)="Actual")  that I've put in a column clustered chart.

Only problem when I try to click on one of the measure for example on the measure 2 in february it selects measure1 also.

 

My objective is just to click on measure 2 and have the forecast for february display on the tab below my graph

yanisyes_1-1652514759154.png

Thanks for your help.

Best regards,

 

 

 

 

2 ACCEPTED SOLUTIONS
SpartaBI
Community Champion
Community Champion

@yanisyes I think what you are looking for is this:
Create only one measure: Measure = COUNTROWS('conso')
On the visual on top put months on the axis and category on labels.
On the matrix below put the months on the rows and category on the columns.
Now, if you will click on the label on the top visual it will only show this category on the matrix below.


2022-05-09 22_36_04-Power BI Workspace Datasets License Permissions - Microsoft Power BI Community.png

Showcase Report – Contoso By SpartaBI


SpartaBI_3-1652115470761.png  SpartaBI_1-1652115142093.png   SpartaBI_2-1652115154505.png

Full-Logo11.png

View solution in original post

v-yanjiang-msft
Community Support
Community Support

Hi @yanisyes ,

According to your description, you may have some misunderstanding about filter, filter is only for rows, cannot filter columns. measure and measure1 are seperate columns in the table, it can't be filtered.

By my test, @SpartaBI 's solution works fine.

vkalyjmsft_0-1652952005177.pngvkalyjmsft_1-1652952024642.png

I also attach my sample below for your reference.

 

Best Regards,
Community Support Team _ kalyj

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-yanjiang-msft
Community Support
Community Support

Hi @yanisyes ,

According to your description, you may have some misunderstanding about filter, filter is only for rows, cannot filter columns. measure and measure1 are seperate columns in the table, it can't be filtered.

By my test, @SpartaBI 's solution works fine.

vkalyjmsft_0-1652952005177.pngvkalyjmsft_1-1652952024642.png

I also attach my sample below for your reference.

 

Best Regards,
Community Support Team _ kalyj

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

SpartaBI
Community Champion
Community Champion

@yanisyes I think what you are looking for is this:
Create only one measure: Measure = COUNTROWS('conso')
On the visual on top put months on the axis and category on labels.
On the matrix below put the months on the rows and category on the columns.
Now, if you will click on the label on the top visual it will only show this category on the matrix below.


2022-05-09 22_36_04-Power BI Workspace Datasets License Permissions - Microsoft Power BI Community.png

Showcase Report – Contoso By SpartaBI


SpartaBI_3-1652115470761.png  SpartaBI_1-1652115142093.png   SpartaBI_2-1652115154505.png

Full-Logo11.png

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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