Forum Discussion
Excellove15
May 30, 2025Iron Contributor
Better model to improve the performance calculated table/Dax measures
Hi Team, Now, I have an issue with Data model I have developed. Attached is the model i use for my power bi reports that contains 3 dashboards. Invoice quality is one of the dashboards. Below a...
Kidd_Ip
May 31, 2025MVP
Would suggest look into:
- Prevent large datasets calculation
- Refactor status calculation using measures:
Status Measure =
SWITCH(
TRUE(),
[Number of Invoices] > 1 && [Number of Invoices] > [Number of Credits], "Multiple Invoices",
[Number of Credits] > [Number of Invoices] && [Net Cost] <> 0, "Multiple Credits",
ISEVEN([Net Invoices]) && [Net Cost] <> 0, "Invoice-Credit Value Mismatch",
[Number of Credits] = [Number of Invoices] && [Net Cost] = 0, "Credit Cancels Invoice",
BLANK()
)
3. Consider aggregating data in Power Query before hits your DAX model
4. Ensure relationship between Invoice Issues, Point and Calendar to minimize slow filtering
5. Leverage summarized tables instead of Row-Based calculations