Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
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.
User | Count |
---|---|
53 | |
22 | |
18 | |
18 | |
13 |
User | Count |
---|---|
89 | |
87 | |
50 | |
34 | |
22 |