Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
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!
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 💡
Proud to be a Super User! | |
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!