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 August 31st. Request your voucher.
I have a table built for using aS dynamic filter showing the previous month, and year by using the PREVIOUSMONTH AND PREVIOUSYEAR functions. It works perfectly. However, I cannot seem to get the syntax correct for creating an option for PREVIOUS DAY.
Hi @Heatmizer3791 ,
Please try this :
ADDCOLUMNS(PREVIOUSDAY(DATESMTD('Plant Teardown Data'[Teardown_Date])),"Type","Last Day")
If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Since it is only a single date you would use ROW rather than ADDCOLUMNS
ROW("Teardown_Date",TODAY()-1,"Type","Yesterday")
This approached worked. Thank you!
User | Count |
---|---|
27 | |
12 | |
8 | |
8 | |
5 |
User | Count |
---|---|
31 | |
15 | |
12 | |
7 | |
7 |