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

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more

Reply
ronlovesdata
New Member

Dynamic Benchmarks

Hello,

 

I'm trying to create measures for various benchmarks in a marketing dashboard, specifically CTR, View-thru rate, and video completion rate. I want these measures to respond to slicers set at the report level, along with the specific level in hierarchy within a matrix table. The drill down levels are campaign name > creative name > ad size > ad platform, and the page level slicers are for Brand, Date, Campaign, Product, and Platform. I've been playing around with ALLSELECTED() and INISCOPE() functions to try to get the measures to respond to filters and hierarchy levels in the way that I want, but can't get them to work in the way that I want. As an example, I wrote the following formula for a dynamic CTR measure, but the results are the same as the regular CTR measure, which is simply a divide function.

Formula:

Hierarchy CTR =

VAR drillclicks = CALCULATE(SUM(vw_media_summary[Clicks]))

VAR drillimp = CALCULATE(SUM(vw_media_summary[Impressions]))

RETURN

SWITCH(

    TRUE(),

    ISINSCOPE(vw_media_summary[platform]), DIVIDE(drillclicks, drillimp),

    ISINSCOPE(vw_media_summary[ad_size]), DIVIDE(drillclicks, drillimp),

    ISINSCOPE(vw_media_summary[creative_name]), DIVIDE(drillclicks, drillimp),

    ISINSCOPE(vw_media_summary[creative_campaign]), DIVIDE(drillclicks, drillimp),

    [Dynamic CTR%]

)

 

When I drill down to the lowest level of the hierarchy (platform), the Hierarchy CTR returns the same value as the standard CTR measure we've already setup. The dataset is proprietary, so I can't share it, but it is very extensive and robust, so I should be able to manipulate it in any way that makes sense. Appreciate any help/insight!


1 REPLY 1
Idrissshatila
Super User
Super User

Hello @ronlovesdata ,

 

can you do it with field parameters ?

 

check it out https://learn.microsoft.com/en-us/power-bi/create-reports/power-bi-field-parameters

 

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

Follow me on Linkedin
Vote For my Idea 💡



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




Helpful resources

Announcements
Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

Check out the July 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors