The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hi, I have a dataset that takes a daily snapshot of clients with measures; client count, weeks and hours. For any two given dates I want to be able to calculate the variance (most recent minus oldest) in the measures, i.e. change in count, hours and weeks. I want to be able to filter on client name, manager and segment. Have tried indexing and using EARLIER. Guidance would be greatly appreciated.
The variance between 4th and 5th would show Change in Clients 1, Change in Hours 150 and Change in Weeks 2.
Solved! Go to Solution.
@Anonymous
Assuming you are using a date table selected two dates in slicer then you can have like
Measure =
var _min = minx('Date','Date'[Date])
var _max = maxx('Date','Date'[Date])
return
calculate(sum(Table[Hours]),filter('Date','Date'[Date]=_min))- calculate(Table[Value],filter('Date','Date'[Date]=_max))
One way would be to use Data>Filter>Autofilter
Use the dropdown on the second column to select "blanks" and that will give
you the list of stores you are stillwaiting to hear from.
I'm sorry, it's dumb question time, I'm fairly new to Power BI, where do I find the options Data, Filter, Autofilter? Thanks for advice.
@Anonymous
Assuming you are using a date table selected two dates in slicer then you can have like
Measure =
var _min = minx('Date','Date'[Date])
var _max = maxx('Date','Date'[Date])
return
calculate(sum(Table[Hours]),filter('Date','Date'[Date]=_min))- calculate(Table[Value],filter('Date','Date'[Date]=_max))
Hi, it worked and I'm putting it into production. How can I develop this further to highlight additonal clients (for example) that are added to the table? Whilst totals work the details seem to fll over if new entrants did not xist in the table previously?
User | Count |
---|---|
71 | |
63 | |
62 | |
50 | |
28 |
User | Count |
---|---|
117 | |
75 | |
62 | |
54 | |
43 |