Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance 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 |
---|---|
25 | |
12 | |
8 | |
6 | |
6 |
User | Count |
---|---|
26 | |
12 | |
11 | |
8 | |
6 |