The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hello Community,
I would like to accomplish the same solution achieved in this article, but to modify the latest date constraint to apply for *each month*.
Below is what I would like to achieve - End of Month Value is the desired column.
Thanks in advance for your input!
Solved! Go to Solution.
Thank you so much!
I actually figured out how to do it using ALLEXCEPT as follows:
1. Created column YearMonth =
Apologies! My sample table was wrong - here is the correct table showing desired results:
Hi:
Please have Date Table connected to this your Fact Table. Mark as Date Table. Form relationship with your Fact Table (Date to Stock Date).
First Measure:
Stock Value = SUM(Table[Stock Value])
or
Last Value = CALCULATE([Stock Value]), LASTNONBLANK(Dates[Date], [Stock Value]))
If you want calculated column:
I hope this helps!
Thank you so much!
I actually figured out how to do it using ALLEXCEPT as follows:
1. Created column YearMonth =
Awesome. The measures look good. Please mark as solution or kudos if you can. Thanks!
User | Count |
---|---|
15 | |
8 | |
6 | |
6 | |
5 |
User | Count |
---|---|
25 | |
13 | |
13 | |
8 | |
8 |