Forum Discussion
Power BI DAX: Calendar Table Integration Breaking Existing Measure Logic
- 1 year ago
Hi,
Revise the measure to
measure_column = CALCULATE(SUM(Budget[AMOUNT_FIELD]),DATESBETWEEN('Calendar'[Date],MAX('Calendar'[Date])+1,MAXX(ALL('Calendar'),'Calendar'[Date])))Hope this helps.
Hi again! I missed one thing - the relationship between the tables. I've updated the PBIX file to reproduce the same error
https://drive.google.com/file/d/1hRrtOCUvIX_uVUj96yBAE0ws2H0IjE9O/view?usp=drive_link
I created measure_field2 using the code you sent me and I'm using the Power BI functionalities I need (Single Date picker and Top n 1 ordered by date), but the code you provided isn't returning the expected results. The relationship must remain as it is currently configured, which is why I cannot implement it differently. I've tried modifying it, but doing so breaks my report.
Could you provide additional guidance considering this table relationship structure?
If you insist on that relationship staying intact then i will not be able to help you because tht relationship should not exist in the first place.