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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
AkankshaRai_123
Frequent Visitor

Create a virtual table using dax which only contain the selected multi select slicer values

I have a category table, and multi select filters contains category column, I am trying to create table using Dax which will only show the data of categories filtered by slicer. Can we do it in PowerBI Ultimate Problem Statement: - If I have 3 categories A, B and C with respective Index column. If my slicer selects A & C, then my virtual Table shows only A and C Category data, by which I will create a measure for Min (Index), for Comparison of Category C vs Category A data. @Microsoft

1 ACCEPTED SOLUTION

In that case you can use something like 

 

CALCULATE(MIN(Table[Index]),ALLSELECTED(Table[Category Name]))

View solution in original post

8 REPLIES 8
AkankshaRai_123
Frequent Visitor

@Rupak_bi 
In the below screenshot, min selected index should show only minimum Index number out of all selected category's Index. 

AkankshaRai_123_0-1725102973944.png

Not sure how can I share the file however, below is the sample data snapshot.

AkankshaRai_123_1-1725103210671.png

P.S. A measure is required which will show the Minimum index value from selected values of Multi Select slicer list. We can do this in Card visual easily, but I need a measure for Matrix visual.

Are you expecting to show a 2 for C ?

Yes, and even if we select more category, it should show the minimum.

In that case you can use something like 

 

CALCULATE(MIN(Table[Index]),ALLSELECTED(Table[Category Name]))

I had tried this and it is working. Thanks

Rupak_bi
Post Prodigy
Post Prodigy

Hi @AkankshaRai_123 

Here you are creating table using dax. Table doesn't work dynamically based on slicers. 

The table to be created inside a measure and then the required comparison to be done there itself.

Please share some sample data and your desired out put. Will try to solve



Regards
Rupak
FOLLOW ME : https://www.linkedin.com/in/rupaksar/
lbendlin
Super User
Super User

use VALUES or FILTERS

In the below snapshot, I have created dax based Table 2 which need to give only filtered values from Table.

AkankshaRai_123_0-1725028969037.png

However, that isn't the case.

AkankshaRai_123_1-1725029096456.png

 

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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