March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi, I want to get the last day sale of each month from a date table as DimDate and a Fact Table with all aggregates. anyone kindly hlep me how to achieve this. i have tried Calculate(sum( FactTable[TotalSales]), LastDate(Dimdate[DateColumn]).
it is giving me the total sales of each month but not the sales of last date of each month.
Your ideas on this will be highly regarede.
Solved! Go to Solution.
Try this measure
lastday total =
CALCULATE(SUM('Fact Table'[Sales]),FILTER('Fact Table','Fact Table'[Date]=ENDOFMONTH('Fact Table'[Date])))
You can try it with the demo I provided, please let me know if you have any questions.
Best Regards!
Community Support Team _ chenwu zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Try this measure
lastday total =
CALCULATE(SUM('Fact Table'[Sales]),FILTER('Fact Table','Fact Table'[Date]=ENDOFMONTH('Fact Table'[Date])))
You can try it with the demo I provided, please let me know if you have any questions.
Best Regards!
Community Support Team _ chenwu zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi,
Do these measures work?
Total = SUM(Data[Balance])
Balance on last date = CALCULATE([Total],LASTNONBLANK('DimDate'[DateColumn],CALCULATE([Total]))))
To the visual, ensure that you drag the Month name from the DimDate table.
Hi @Ashish_Mathur , Thanks for being here. i tried this measure but it is giving me the same results. Here is a screen shot of that output. i want the sale of lastday of each month but it is giving me the total sale of each month.
Hi,
Share the link from where i can download your PBI file.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
114 | |
76 | |
57 | |
52 | |
44 |
User | Count |
---|---|
168 | |
116 | |
63 | |
57 | |
50 |