Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
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
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
47 | |
26 | |
19 | |
14 | |
10 |
User | Count |
---|---|
58 | |
50 | |
44 | |
19 | |
19 |