Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Solved! Go to Solution.
Hi,
try using a variable.
Order_Count_Optimized =
VAR OrdersCount =
CALCULATE (
COUNT(Orders[Id]),
USERELATIONSHIP ( Products[Inspection_EndDate], 'Dim-Date'[Date] ),
USERELATIONSHIP(UserProfiles[AccountId__UID], Operators[AccountId__UID])
)
RETURN
OrdersCount
Hi @hoosha_11 ,
You can try storing intermediate results in variables. This approach reduces the number of calculations and thus improves performance. You can modify your formula like below:
Order_Count =
VAR InspectionEndDate =
CALCULATE (
COUNT(Orders[Id]),
USERELATIONSHIP ( Products[Inspection_EndDate], 'Dim-Date'[Date] )
)
VAR AccountIdRelationship =
CALCULATE (
COUNT(Orders[Id]),
USERELATIONSHIP(UserProfiles[AccountId__UID], Operators[AccountId__UID])
)
RETURN
InspectionEndDate + AccountIdRelationship
Also i tried formula provided by @Shravan133 . You can refer to below result:
Best Regards,
Adamk Kong
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @hoosha_11 ,
You can try storing intermediate results in variables. This approach reduces the number of calculations and thus improves performance. You can modify your formula like below:
Order_Count =
VAR InspectionEndDate =
CALCULATE (
COUNT(Orders[Id]),
USERELATIONSHIP ( Products[Inspection_EndDate], 'Dim-Date'[Date] )
)
VAR AccountIdRelationship =
CALCULATE (
COUNT(Orders[Id]),
USERELATIONSHIP(UserProfiles[AccountId__UID], Operators[AccountId__UID])
)
RETURN
InspectionEndDate + AccountIdRelationship
Also i tried formula provided by @Shravan133 . You can refer to below result:
Best Regards,
Adamk Kong
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi,
try using a variable.
Order_Count_Optimized =
VAR OrdersCount =
CALCULATE (
COUNT(Orders[Id]),
USERELATIONSHIP ( Products[Inspection_EndDate], 'Dim-Date'[Date] ),
USERELATIONSHIP(UserProfiles[AccountId__UID], Operators[AccountId__UID])
)
RETURN
OrdersCount
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
72 | |
70 | |
37 | |
29 | |
26 |
User | Count |
---|---|
91 | |
49 | |
44 | |
38 | |
37 |