This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
I am trying to sum up my variance for fiscal month to date and it's being troublesome, my DAX query is - Thank you in advance
Measure_with_yearfilter = CALCULATE([Revenue_Variance], FILTER(fact_invoice_tx_financials,[Missed_Revenue] = 1),FILTER(dim_date,YEAR(dim_date[Date]) = YEAR(TODAY())))
Solved! Go to Solution.
Hi @lmundia,
Try this
=SUMX(SUMMARIZE(fact_invoice_tx_financials,dim_date[Fiscal Month],"ABCD",CALCULATE([Revenue_Variance], FILTER(fact_invoice_tx_financials,[Missed_Revenue] = 1),FILTER(dim_date,YEAR(dim_date[Date]) = YEAR(TODAY())))),[ABCD])
Hope this helps.
Hi @lmundia,
Try this
=SUMX(SUMMARIZE(fact_invoice_tx_financials,dim_date[Fiscal Month],"ABCD",CALCULATE([Revenue_Variance], FILTER(fact_invoice_tx_financials,[Missed_Revenue] = 1),FILTER(dim_date,YEAR(dim_date[Date]) = YEAR(TODAY())))),[ABCD])
Hope this helps.
Hi @lmundia
Try this...
Measure_with_yearfilter =
var actualmonth = FIRSTNONBLANK(dim_date[Fiscal_Month_Sort];1)
return
CALCULATE
(
[Revenue_Variance],
ALL('dim_date'),
YEAR(dim_date[Date]) = YEAR(TODAY()),
dim_date[Fiscal_Month_Sort] <= actualmonth
)I hope this helps
Regards
BILASolution
returned the first fiscal month numbers, thank you for chipping in.
You are welcome.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 31 | |
| 23 | |
| 23 | |
| 20 | |
| 16 |
| User | Count |
|---|---|
| 63 | |
| 38 | |
| 28 | |
| 23 | |
| 22 |