Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
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.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 52 | |
| 34 | |
| 33 | |
| 17 | |
| 17 |
| User | Count |
|---|---|
| 61 | |
| 60 | |
| 39 | |
| 26 | |
| 24 |