The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hi!
Here's a simplified version of my issue.
I have a table displayed that shows:
DATE // Value for that date // (Value - Average)/Average
I wanted to only show dates where the 3rd column is over, let's say, 15%. I added the filter to the table and it works fine.
The thing is that now the 3rd column doesn't display the original values. It now displays the values calculated with a new average, that only considers the dates that passed the 15% filter.
Is there anyway I can prevent that?
Please, be aware I cannot use ALL because I do have a date slicer so the user can determine a period, so the AVG should be calculated by the period determined by that slicer.
Thank you!
Gustavo
@Anonymous , Assume you have measure value
Measure =
Var _total = calculate([Value], allselected()) //if value if of avg type
// Or Use // calculate(averageX(values('Date'[Date]), [Value]) ,allselected())
return
divide([Value] -_total, _total)
That's actually how I currently have the measures. Here's the ones I have:
Duration - Average = calculate(AVERAGE('EOD Results'[Duration PBI]), ALLSELECTED('EOD Results'))
Duration - Absolute Deviation = ABS(sum('EOD Results'[Duration PBI]) - 'Calculations'[Duration - Average])
Duration - Abs Dev / Avg = 'Calculations'[Duration - Absolute Deviation]/[Duration - Average]
User | Count |
---|---|
28 | |
11 | |
8 | |
6 | |
5 |
User | Count |
---|---|
35 | |
14 | |
12 | |
9 | |
7 |