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
Hi everybody
I haver the following scheme where:
Relação de Clientes = Customer Base (dimension)
Cód_Item = Item Base (dimension)
dCalendário = Calendar (dimension)
fEmpenho = Open Orders (fact)
fNFe = Sales Made (fact)
So I created this table which works perfectly until I insert the Item Base dimension in it:
The measure that isn't working is:
Qtd. Faturado + Aberto = SUM(fEmpenho[Qtd. Aberta])+SUM(fNFe[Quantidade])
Which means: open orders amount + sales made amount
The strange thing is that these following measures are working perfectly and I don't know how or why:
@pedrogpg , Based on what I got , Try like
CALCULATE(AverageX(values(dCalendario[Month Year]), calculate(SUM(fNFe[Quantidade]))),DATESINPERIOD(dCalendario[DataBase], eomonth(Max(dCalendario[DataBase]),0),-3,MONTH))
CALCULATE(AverageX(values(dCalendario[Month Year]), calculate(SUM(fNFe[Quantidade]))),DATESINPERIOD(dCalendario[DataBase], eomonth(Max(dCalendario[DataBase]),0),-6,MONTH))
Hi @amitchandak
Thanks for your reply.
The average measures are working perfectly.
The problem is with the measure
Qtd mês anterior = CALCULATE(SUM(fNFe[Quantidade]),PREVIOUSMONTH(dCalendario[DataBase]))
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 |