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!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hello,
Am trying to define a measure where any date (date_lab_ordered) greater than -12 months of the selected slicer date (CalenderDate[dates]) if a valid date.
my DAX is as follows.
Valid=IF(date_lab_ordered>MAXX(DATEADD(CalenderDate[dates],-12,MONTH),CalenderDate[dates]),"Valid","Not Valid")
However, this labels all cases in the data as valid. Any help is much appreaciated. Thanks
hi @Rngomoa
how are you going to use this measure, or what context do you have?
if you are plotting the table as it is in the dataset, try to plot with a measure like:
User | Count |
---|---|
15 | |
11 | |
6 | |
6 | |
5 |
User | Count |
---|---|
29 | |
17 | |
11 | |
7 | |
5 |