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.
Very good, I am trying to create a column PREVIOUS DATES which I must take out of a swing DATES, the dates have different difference of days since they are updated every 2.3 or up to 6 days apart so a -1 does not help me.
If you see the image of my felling the dates of Previous Date and Date are the same.
I'd like to know if there's a way to leave the dates like this:
Any DAX commands that can help me?
Solved! Go to Solution.
Hi @Anonymous ,
You want measure or column?
I'll provide you both formula.
Measure = CALCULATE(MAX('Table'[date]),FILTER(ALLSELECTED('Table'),'Table'[date]<SELECTEDVALUE('Table'[date])))
Column = CALCULATE(MAX('Table'[date]),FILTER('Table','Table'[date]<EARLIER('Table'[date])))
Best Regards,
Jay
Hi @Anonymous ,
You want measure or column?
I'll provide you both formula.
Measure = CALCULATE(MAX('Table'[date]),FILTER(ALLSELECTED('Table'),'Table'[date]<SELECTEDVALUE('Table'[date])))
Column = CALCULATE(MAX('Table'[date]),FILTER('Table','Table'[date]<EARLIER('Table'[date])))
Best Regards,
Jay
Columnans works perfect. Thanks a lot.
Hi @Anonymous ,
Try following steps:
2. You will have data something like this:
3. Then create the following measure and you will get expected result.
Grax, but I dealt with this and the query editor didn't recognize me from the table I created.
Thank you from all the maeras.
User | Count |
---|---|
56 | |
54 | |
53 | |
48 | |
30 |
User | Count |
---|---|
173 | |
89 | |
70 | |
46 | |
45 |