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.
Hello,
I have a table that have 5 dates and I need a function that bring me what date it's inside the last five days.
For example:
Number | Date | Results |
1 | 2023-13-01 | 0 |
2 | 2023-15-01 | 0 |
3 | 2023-13-02 | 1 |
4 | 2023-08-02 | 0 |
5 | 2023-03-02 | 0 |
I need a Function that calculate if the colunm "Date" in the last 05 days, bring number 1, case not, 0.
Thanks a lot
Solved! Go to Solution.
Hi,
Please check the below picture and the attached pbix file.
It is for creating a new column.
Result CC =
(
TODAY () - 5 <= Data[Date]
) * 1
Hi,
Please check the below picture and the attached pbix file.
It is for creating a new column.
Result CC =
(
TODAY () - 5 <= Data[Date]
) * 1
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
22 | |
7 | |
6 | |
6 | |
6 |
User | Count |
---|---|
27 | |
10 | |
10 | |
9 | |
6 |