The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hello community,
I have a visualization as a table. I have several headoucounts (one row per employee and each row has a date field).
I want to show the headcount by group (one of the field in the dataset) and count the primary key to get the different headcount per group per period.
Now comes the tricky part I can't figure out.
I have a pre-set baselie, and I would like the user to select the period they want to compare against the deadline.
I can acheve this by adding a filter and select two period (baseline+period to compare). but ideally I would like the user the be able to only choose the comparing period and not the baseline.
I would like to, basically have a filter (force single value selection (easy)) but have a value (the baseline) unaffected by the filter selection.
Is this at all possible? How would I go about it?
Thanks in advance to any pointer. I don't need full solution, but if anyone could point me in the right direction....I am quite new to Power BI.
Solved! Go to Solution.
Hi @davidepolizzi ,
You can try creating a CALENDAR table and using the date field as slicer then creating a measure like below.
calculate(count(id),filter(table,table[date]=selectedvalue(CALENDAR[date])))
This would help calculate the headcount by the selected date and the baseline in data table won't be filtered by the slicer.
Best Regards,
Jay
Community Support Team _ Jay Wang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @davidepolizzi ,
You can try creating a CALENDAR table and using the date field as slicer then creating a measure like below.
calculate(count(id),filter(table,table[date]=selectedvalue(CALENDAR[date])))
This would help calculate the headcount by the selected date and the baseline in data table won't be filtered by the slicer.
Best Regards,
Jay
Community Support Team _ Jay Wang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
111 | |
80 | |
78 | |
43 | |
37 |
User | Count |
---|---|
157 | |
112 | |
64 | |
60 | |
54 |