Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
i am facing performance issue in the above dax in live connection. can anyone modify the formulae to make the dax efficient.if i don't add customer number and Item name to the table then dax is working perfectly. but when i try to put the customer number and Item in the table it is not loading.
previousSCDate =
Var MaxPlanDate = CALCULATE(Max(date[CreatedDate]),GROUPBY(Cus,[Cus_Number]),GROUPBY('item',[itemname]))
Return
CALCULATE(
MAX(date[CreatedDate] )
,date[CreatedDate] < MaxPlanDate,GROUPBY(Cus,[Cus_Number]),GROUPBY('item',[itemname])
)
hi, @Anonymous
If you could filter some data and then try it again?
or if you just use this formula to create a measure
Measure 3 = CALCULATE(MAX('date'[CreatedDate]),FILTER(ALL('date'),'date'[CreatedDate]<MAX('date'[CreatedDate])))
If possible, could you share some sample data and your expected output.
Best Regards,
Lin
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 38 | |
| 38 | |
| 37 | |
| 28 | |
| 28 |
| User | Count |
|---|---|
| 124 | |
| 89 | |
| 73 | |
| 66 | |
| 65 |