Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
Hello!
I have a measure that calculates the performance of search terms in my campaigns. However, I want to add this as a filter, but I know that you cannot directly add a measure as a filter. Can anyone help me know how I can do this?
The formula for the measure is:
Bleeder: [Clicks] >= 10 and [Total Sales per Day] = 0
Untested: [Clicks] < 10, [Total Sales per Day] = 0
Unprofitable: ACOS > 0.25
Profitable**: ACOS between 0.15 and 0.25 < 0.25
Profitable: ACOS < 0.15
Thank you!
Solved! Go to Solution.
Hi Cris,
Hopefully you find this 11 minute youtube video helpful. 😄
Proud to be a Super User! | |
Hi @Cris0410 ,
I created some data:
Here are the steps you can follow:
1. Enter data – create a table.
2. Create measure.
Flag =
var _select=SELECTEDVALUE('Slicer_Table'[Group])
return
SWITCH(
TRUE(),
_select="Bleeder"&& MAX('Table'[Clicks])>=10&&MAX('Table'[Total Sales per Day])=0,1,
_select="Untested"&&MAX('Table'[Clicks])<10&&MAX('Table'[Total Sales per Day])=0,1,
_select="Unprofitable"&&MAX('Table'[ACOS])>0.25,1
,
_select="Profitable**"&&MAX('Table'[ACOS])<=0.25&&MAX('Table'[ACOS])>=0.15,1,
_select="Profitable"&&MAX('Table'[ACOS])<0.15,1,0)
Measure =
COUNTX(
ALLSELECTED('Table'),[Index])
3. Place [Flag]in Filters, set is=1, apply filter.
4. Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi Cris,
Hopefully you find this 11 minute youtube video helpful. 😄
Proud to be a Super User! | |
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
25 | |
12 | |
9 | |
9 | |
9 |
User | Count |
---|---|
21 | |
14 | |
14 | |
13 | |
13 |