Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hi,
I am looking for some advice on how to deal with the following scenario. The requirement is as follows:
| Employee | Joining Date |
| A | January 2020 |
| B | March 2020 |
| C | November 2019 |
| D | February 2020 |
Could you please suggest a solution for this? I have used Spotfire quite extensively before, and would have used property controls, but am unable to get my head around a solution in PBI.
Thanks,
Vivek
Solved! Go to Solution.
@Anonymous , If joining date is a date, like this you can do by selecting a month
Use date calendar table and join it with Joining date
measure =
var _month =maxx(Date,date[Month])
var _max = maxx(filter(Date,date[month]=_month),Date[date])
return
calculate(count(Table[Employee]),Filter(all(Date),Date[date]<=_max))
To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :
https://radacad.com/creating-calendar-table-in-power-bi-using-dax-functions
https://www.archerpoint.com/blog/Posts/creating-date-table-power-bi
https://www.sqlbi.com/articles/creating-a-simple-date-table-in-dax/
@Anonymous , If joining date is a date, like this you can do by selecting a month
Use date calendar table and join it with Joining date
measure =
var _month =maxx(Date,date[Month])
var _max = maxx(filter(Date,date[month]=_month),Date[date])
return
calculate(count(Table[Employee]),Filter(all(Date),Date[date]<=_max))
To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :
https://radacad.com/creating-calendar-table-in-power-bi-using-dax-functions
https://www.archerpoint.com/blog/Posts/creating-date-table-power-bi
https://www.sqlbi.com/articles/creating-a-simple-date-table-in-dax/
Thank you very much sir!
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 57 | |
| 38 | |
| 34 | |
| 18 | |
| 16 |
| User | Count |
|---|---|
| 68 | |
| 67 | |
| 42 | |
| 30 | |
| 26 |