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
This one have 3 cards with 3 different measures.
The first one is :
Solved! Go to Solution.
Hi @Anonymous
You can refer to the following measure
Qtd Total Current Month =
CALCULATE (
SUM ( LinhasEncomendas_BI[partes] ),
MONTH ( LinhasEncomendas_BI[DataFinal] )
= IF (
ISBLANK ( SELECTEDVALUE ( LinhasEncomendas_BI[DataFinal].[MonthNo] ) ),
MONTH ( TODAY () ),
SELECTEDVALUE ( LinhasEncomendas_BI[DataFinal].[MonthNo] )
),
ALL ( LinhasEncomendas_BI )
)
Qtd Total Previous Month =
CALCULATE (
SUM ( LinhasEncomendas_BI[partes] ),
MONTH ( LinhasEncomendas_BI[DataFinal] )
= IF (
ISBLANK ( SELECTEDVALUE ( LinhasEncomendas_BI[DataFinal].[MonthNo] ) ),
MONTH ( EDATE ( TODAY (), -1 ) ),
MONTH ( EDATE ( SELECTEDVALUE ( LinhasEncomendas_BI[DataFinal].[Date] ), -1 ) )
),
ALL ( LinhasEncomendas_BI )
)
Qtd Total Previous Month =
CALCULATE (
SUM ( LinhasEncomendas_BI[partes] ),
MONTH ( LinhasEncomendas_BI[DataFinal] )
= IF (
ISBLANK ( SELECTEDVALUE ( LinhasEncomendas_BI[DataFinal].[MonthNo] ) ),
MONTH ( EDATE ( TODAY (), -2 ) ),
MONTH ( EDATE ( SELECTEDVALUE ( LinhasEncomendas_BI[DataFinal].[Date] ), -2 ) )
),
ALL ( LinhasEncomendas_BI )
)
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thats works like I want too, thanks for the help 😄
Hi @Anonymous
You can refer to the following measure
Qtd Total Current Month =
CALCULATE (
SUM ( LinhasEncomendas_BI[partes] ),
MONTH ( LinhasEncomendas_BI[DataFinal] )
= IF (
ISBLANK ( SELECTEDVALUE ( LinhasEncomendas_BI[DataFinal].[MonthNo] ) ),
MONTH ( TODAY () ),
SELECTEDVALUE ( LinhasEncomendas_BI[DataFinal].[MonthNo] )
),
ALL ( LinhasEncomendas_BI )
)
Qtd Total Previous Month =
CALCULATE (
SUM ( LinhasEncomendas_BI[partes] ),
MONTH ( LinhasEncomendas_BI[DataFinal] )
= IF (
ISBLANK ( SELECTEDVALUE ( LinhasEncomendas_BI[DataFinal].[MonthNo] ) ),
MONTH ( EDATE ( TODAY (), -1 ) ),
MONTH ( EDATE ( SELECTEDVALUE ( LinhasEncomendas_BI[DataFinal].[Date] ), -1 ) )
),
ALL ( LinhasEncomendas_BI )
)
Qtd Total Previous Month =
CALCULATE (
SUM ( LinhasEncomendas_BI[partes] ),
MONTH ( LinhasEncomendas_BI[DataFinal] )
= IF (
ISBLANK ( SELECTEDVALUE ( LinhasEncomendas_BI[DataFinal].[MonthNo] ) ),
MONTH ( EDATE ( TODAY (), -2 ) ),
MONTH ( EDATE ( SELECTEDVALUE ( LinhasEncomendas_BI[DataFinal].[Date] ), -2 ) )
),
ALL ( LinhasEncomendas_BI )
)
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 39 | |
| 38 | |
| 38 | |
| 28 | |
| 27 |
| User | Count |
|---|---|
| 124 | |
| 88 | |
| 73 | |
| 66 | |
| 65 |