Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
I have the columns: [MARCO INICIAL] and [MARCO_FINAL]
I need to know if the current date is among these data and then sum
Example: Today is 11, if this value is between this data.
I tried to do something like this:
But this way it will only sum if the column [MARCO_INICIAL] OR [MARCO_FINAL] was equal to the current date
FRANQUIA_TOTAL =
var totalIndisponibilidade = CALCULATE(
COUNTROWS(
FILTER(
TBL_DISPONIBILIDADE_FROTA_AEREA,
DAY(TBL_DISPONIBILIDADE_FROTA_AEREA[MARCO_INICIAL]) >= DAY(NOW()) &&
DAY(TBL_DISPONIBILIDADE_FROTA_AEREA[MARCO_FINAL]) <= DAY(NOW()) &&
TBL_DISPONIBILIDADE_FROTA_AEREA[TIPO_OCORRENCIA] = "UTILIZAÇÃO DE FRANQUIA"
)
)
)
var _total = FORMAT(totalIndisponibilidade,UNICHAR(9650)&" 0")
return _total
Hi,
This should ideally solved with a calculated formula (not a measure). If you are OK with my approach, then share the download link of the PBI file.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 40 | |
| 35 | |
| 34 | |
| 31 | |
| 28 |
| User | Count |
|---|---|
| 136 | |
| 102 | |
| 68 | |
| 66 | |
| 58 |