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.
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 |
---|---|
14 | |
11 | |
8 | |
6 | |
5 |
User | Count |
---|---|
28 | |
18 | |
13 | |
7 | |
5 |