Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
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
Solved! Go to Solution.
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.
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 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
)
)
User | Count |
---|---|
84 | |
80 | |
69 | |
46 | |
46 |
User | Count |
---|---|
106 | |
50 | |
49 | |
40 | |
39 |