Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hello everyone!
I have a question that I couln't figure for myself.
I need to set in "DATA_CAPTURA" a specific time like "01/07/2022 to 01/07/2022". but, my "QTD_ATND_2 (it's basically a SUM) "need to be "70".
If I change my range in "DATA_CAPTURA" to 01/07/2022 to 31/07/2022 I will only get what is beetween this two values. But I need everthing that is before "31/07/2022".
Best Regards,
Daniel.
Solved! Go to Solution.
@Anonymous Try this:
VAR LastSelectedDate =
CALCULATE (
MAX ( Dates[Date] ),
ALLSELECTED ( Dates[Date] )
)
VAR Result =
CALCULATE (
[QTD_ATND_2],
Dates[Date] > LastSelectedDate
)
RETURN
Result
@Anonymous Try this:
VAR LastSelectedDate =
CALCULATE (
MAX ( Dates[Date] ),
ALLSELECTED ( Dates[Date] )
)
VAR Result =
CALCULATE (
[QTD_ATND_2],
Dates[Date] > LastSelectedDate
)
RETURN
Result
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 6 | |
| 5 | |
| 4 |
| User | Count |
|---|---|
| 25 | |
| 14 | |
| 8 | |
| 8 | |
| 8 |