Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
Can someone help me with this DAX.
Solved! Go to Solution.
Hi @ryan012620 ,
Your request is too vague. I hope you can provide me with sample data and expected results. Do not take screenshots. Please remember to erase sensitive data. It would be better if you can provide the pbix file. Remember not to log in to your account on Power BI Desktop when uploading the pbix file.
Instead of using 'Leasing Metrics'[Date] for EOMONTH, You need to use the 'Date'[Date] which is being use as a filter.
First, you need to establish a relationship between the two tables through the Date field in the Leasing Metrics table and the Date table.
Secondly, modify the measure syntax as follows:
CALCULATE(
SUM('Leasing Metrics'[Future Occupancy]),
'Leasing Metrics'[Date] = EOMONTH(MAX('Date'[Date]), -1) + 1
)
/
CALCULATE(
SUM('Leasing Metrics'[Total Units]),
'Leasing Metrics'[Date] = EOMONTH(MAX('Date'[Date]), -1) + 1
)
You can try using this modified measure to see if it meets your needs.
If you have any further questions please feel free to contact me.
Best Regards,
Yang
Community Support Team
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
Hi,
I cannot understand what you want but try this
Measure = DIVIDE(CALCULATE(SUM('Leasing Metrics'[Future Occupancy]),DATESBETWEEN('Date'[Date],min('Date'[Date]),min('Date'[Date])))/CALCULATE(SUM('Leasing Metrics'[Total Units]),DATESBETWEEN('Date'[Date],min('Date'[Date]),min('Date'[Date]))))
Hi,
I cannot understand what you want but try this
Measure = DIVIDE(CALCULATE(SUM('Leasing Metrics'[Future Occupancy]),DATESBETWEEN('Date'[Date],min('Date'[Date]),min('Date'[Date])))/CALCULATE(SUM('Leasing Metrics'[Total Units]),DATESBETWEEN('Date'[Date],min('Date'[Date]),min('Date'[Date]))))
Hi @ryan012620 ,
Your request is too vague. I hope you can provide me with sample data and expected results. Do not take screenshots. Please remember to erase sensitive data. It would be better if you can provide the pbix file. Remember not to log in to your account on Power BI Desktop when uploading the pbix file.
Instead of using 'Leasing Metrics'[Date] for EOMONTH, You need to use the 'Date'[Date] which is being use as a filter.
First, you need to establish a relationship between the two tables through the Date field in the Leasing Metrics table and the Date table.
Secondly, modify the measure syntax as follows:
CALCULATE(
SUM('Leasing Metrics'[Future Occupancy]),
'Leasing Metrics'[Date] = EOMONTH(MAX('Date'[Date]), -1) + 1
)
/
CALCULATE(
SUM('Leasing Metrics'[Total Units]),
'Leasing Metrics'[Date] = EOMONTH(MAX('Date'[Date]), -1) + 1
)
You can try using this modified measure to see if it meets your needs.
If you have any further questions please feel free to contact me.
Best Regards,
Yang
Community Support Team
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
User | Count |
---|---|
84 | |
71 | |
71 | |
68 | |
55 |
User | Count |
---|---|
94 | |
92 | |
91 | |
77 | |
70 |