cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
littlemojopuppy Regular Visitor
Regular Visitor

Dynamically Filtering Table Records by Parameter

Hi!  Would like to ask for some help with something if anyone is willing...

I've developed the underlying data to do some rather nice Pareto analysis.
Pareto.PNG

Now as a second part of this, I have a grid that is intended to show records that equal or exceed a certain percentile value.  The first slicer from the top left is intended to filter which records are ACTUALLY SHOWN in the grid below (not modifying any measures!)
By the numbers.PNG

The best solution I could think of is to filter the source data table for the selected percentile value and then base the grid off the resulting table (either FILTER or CALCULATETABLE results in the same thing).  Problem is that the table doesn't change dynamically.  Meaning that if I decide to look at the 75th percentile (instead of the 85th percentile as shown in the pic), the table is intended to recalculate and present a new set of data based on the new filter criteria.

DAX code...

FilteredParetoData = 
    FILTER(
        ParetoData,
        ParetoData[TotalRevenuePercentile] >= Percentile[Percentile Value]
    )


Whenever the percentile value changes, the table does not dynamically recreate the table...it uses to the default value of the Percentile parameter (85).  Could anyone provide any suggestions on how to get the table to dynamically repopulate itself and by extension the grid?

Thanks in advance!  :-)

1 ACCEPTED SOLUTION

Accepted Solutions
littlemojopuppy Regular Visitor
Regular Visitor

Re: Dynamically Filtering Table Records by Parameter

Who wants to hear the most overthought question ever?

I didn't need to dynamically filter to populate anything.  I needed a slicer to filter in/out what wasn't necessary.  I'm an idiot and I'm sorry to waste your time...

3 REPLIES 3
Community Support Team
Community Support Team

Re: Dynamically Filtering Table Records by Parameter

hi, @littlemojopuppy

First, you should know that
1. Calculation column/table not support dynamic changed based on filter or slicer.
2. Measure can be affected by filter/slicer, so you can use it to get dynamic summary result.
here is reference:
https://community.powerbi.com/t5/Desktop/Different-between-calculated-column-and-measure-Using-SUM/t...
https://www.sqlbi.com/articles/calculated-columns-and-measures-in-dax/

Second, Here is the tutorial of Parameters in Power BI Edit Queries for you to refer to

and it couldn't drag into a slicer.
reference:https://www.mssqltips.com/sqlservertip/4475/using-parameters-in-power-bi/

Third, for you requirement, you may try to use “all” functions in DAX: ALL, ALLEXCEPT, ALLSELECTED to create the measure for it.

 

Best Regards,
Lin

 

 

 

 

 

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
littlemojopuppy Regular Visitor
Regular Visitor

Re: Dynamically Filtering Table Records by Parameter

Thank you...I read on Friday that tables are not effected by filters.

littlemojopuppy Regular Visitor
Regular Visitor

Re: Dynamically Filtering Table Records by Parameter

Who wants to hear the most overthought question ever?

I didn't need to dynamically filter to populate anything.  I needed a slicer to filter in/out what wasn't necessary.  I'm an idiot and I'm sorry to waste your time...