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 September 15. Request your voucher.
Hello,
Can somebody help me with this problem?
I want to count the number of persons per day, but only for the last 7 days.
For dates that do not appear in the table, the values will be set to 0. But, I only want that for the last 7 days.
So, for today, it must be in the axis X: from 19/02/2024 to 25/02/2024(Today).
So, I don't want the other dates to appear.
Thanks!
Solved! Go to Solution.
Hi @game1
try this for RETURN: IF( Last7DaysCount > 0, Last7DaysCount, BLANK() )
If you don't want a value to appear, it has to be blank, rather than 0.
Hi @game1
try this for RETURN: IF( Last7DaysCount > 0, Last7DaysCount, BLANK() )
If you don't want a value to appear, it has to be blank, rather than 0.
User | Count |
---|---|
15 | |
13 | |
8 | |
6 | |
6 |
User | Count |
---|---|
27 | |
19 | |
13 | |
9 | |
5 |