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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
ERing
Post Partisan
Post Partisan

Is it possible to filter my visuals with a measure?

I have a simple report like below where I'm showing the Sales Conversion rate in three visuals (a card, a chart, and a chart with state dimension).

I have a measure called APP_Recording_>15_Minutes that counts the rows in my table where two condtions are met.

APP_Recording_>_15_Minutes = CALCULATE(
    COUNTROWS(FILTER('Fact','Fact'[Has_APP_Recording]="Y")),
    'Fact'[APP_Recording_Minutes]>=15
)


My end users have requested that they be able to filter the three visuals using the measure [APP_Recording_>15_Minutes] so that they can see the Sales Conversion % filtered for any Technicians that are below a certain count for [APP_Recording_>15_Minutes].

I've been researching how to solve this, but I have not come up with a solution thus far.

SAMPLE DATA 


Graphs.png

1 ACCEPTED SOLUTION

Hi,

Download the PBI file from here.

Hope this helps.

Ashish_Excel_0-1746851879516.png

 

View solution in original post

4 REPLIES 4
v-saisrao-msft
Community Support
Community Support

Hi @ERing,
I wanted to check if you had the opportunity to review the information provided by @Ashish_Excel @danextian . Please feel free to contact us if you have any further questions. If my response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.
Thank you.

danextian
Super User
Super User

Hi @ERing 

Try this:

Sale_Conversion_Rate Filtered = 
CALCULATE (
    [Sale_Conversion_Rate],
    FILTER (
        VALUES ( 'Fact'[Technician_Name] ),
        [APP_Recording_>_15_Minutes] < 2120
    )
)

 

Also change the referenced measure to this:

APP_Recording_>_15_Minutes = 
COUNTROWS (
    FILTER (
        'Fact',
        'Fact'[Has_APP_Recording] = "Y"
            && 'Fact'[APP_Recording_Minutes] >= 15
    )
)

 

danextian_0-1746767490891.png

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

@danextian Thanks for your solution.

Would it be possible to make the Filter value for [APP_Recording_>_Minutes] dynamic using a parameter or some other technique so that the end user can dynamically select the filter value rather than it being a hard input value (eg 2120) in the measure?

Sale_Conversion_Rate Filtered = 
CALCULATE (
    [Sale_Conversion_Rate],
    FILTER (
        VALUES ( 'Fact'[Technician_Name] ),
        [APP_Recording_>_15_Minutes] < 2120
    )
)

 

Hi,

Download the PBI file from here.

Hope this helps.

Ashish_Excel_0-1746851879516.png

 

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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