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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Nate_Witkin
Frequent Visitor

Create a Dynamic List/Table Based on Selection/Drillthrough

Hello,

 

For the sake of simplicity, I have a list of stores and sales (see table below). I would like to be able to select a store (via click, slicer, or preferrably drillthrough) and dynamically return a list of other stores with similar sales (for example, plus or minus 10%).

 

Store_IDStore_NameSales_Last_YearSales_plus10percSales_minus10perc
01Main Street150165135
02Elm Street140154126
03Center Street125137.5112.5
04Oak Street130143117
05Central Street175192.5157.5
06Broadway Street180198162
07Pine Street120132108

 

Is it possible to use DAX code to write a measure that returns a list of store names or store IDs within the +/- 10% range, based on the store selected using (a) a drillthrough (my preferred option), (b) a slicer list of stores, or (3) by clicking on it in the visual? If not a measure, can I create a calculated table that will change dynamically based on the selection and return the list of similar stores that way? If those don't work, is there another way to efficiently produce a list of observations within a similar range to a selection?

 

I know that I can create a "Between" slicer for sales and move the slicers to +10% and -10% of the value I want, and a table of stores will narrow to the stores I want. However, I'd like to do this quickly and build in more analysis based on the filtered list.

1 ACCEPTED SOLUTION
Ashish_Mathur
Super User
Super User

Hi,

You may download my solution file from here

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

6 REPLIES 6
Nate_Witkin
Frequent Visitor

Mr. Mathur, you are truly a wizard. I learned much from your posted solution and appreciated the extra functionality you added.

 

However, is it possible to produce a table that is filtered based on the [Store_Name]s that are similar to the store selected in the slicer? Your code produces an excellent list of similar stores with the CONCATENATEX function, but is it possible to produce an analogous table to the Data table that is dynamically limited to the stores within the selected range from the selected store?

 

I tried variations on: New Table = FILTER(Data, Data(sales) <= [upper limit] && Data(sales) >= [lower limit])

but I could not change the content of this calculated table with the slicer.

You are welcome.  Thank you for your kind words.  My objective initially was to produce a Table but i could not do so because in the slicer when we select a Store, the table cross filters and shows the same store.  I tried to turn off edit interctions but could not get much success there either.  This is the best i could come up with.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Ashish_Mathur
Super User
Super User

Hi,

You may download my solution file from here

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hi Ashish

 

Can you share the solution again? The link is broken. I'm trying to create a dynamic list based on a Slicer selection and can't work it out.

Hi,

I do not have that file.  Share some data, explain the question and show the expected result.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

MayPowerBICarousel

Fabric Monthly Update - May 2024

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.