Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
I need to use the number of months between the first date in a relative date slice and today.
So for this slicer I need the number 3
Solved! Go to Solution.
Hi @Anonymous,
Use a measure like this:
Number of months = DATEDIFF ( MIN ( Table[date] ); TODAY (); MONTH )
The column refered in Minimum function should be replace by the column on your slicer.
Regards,
MFelix
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHi @Anonymous,
Use a measure like this:
Number of months = DATEDIFF ( MIN ( Table[date] ); TODAY (); MONTH )
The column refered in Minimum function should be replace by the column on your slicer.
Regards,
MFelix
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsThe Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 59 | |
| 43 | |
| 42 | |
| 23 | |
| 17 |
| User | Count |
|---|---|
| 190 | |
| 122 | |
| 96 | |
| 66 | |
| 47 |