The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hello,
I would like to ask how to reduce resources by optmizing measure in Power BI. Because I added new measures and visual loading slow.
Here is an example:
Filtered measure_t =
var a = SUMX (
FILTER (
VALUES ( 'N08-Klientai'[N08_PAV] ),
[20_2_1_DATA PRADELSIMAS] >= 31 && [20_2_1_DATA PRADELSIMAS]<=60
),
CALCULATE ( [18_1_0_BENDRA SKOLA (nuo istorijos pradzios)] )
)
return a
Hi @Analitika ,
Please try below dax formula:
Filtered measure_t =
VAR _measure = [18_1_0_BENDRA SKOLA (nuo istorijos pradzios)]
VAR _tmp =
FILTER (
VALUES ( 'N08-Klientai'[N08_PAV] ),
[20_2_1_DATA PRADELSIMAS] >= 31
&& [20_2_1_DATA PRADELSIMAS] <= 60
)
VAR a =
SUMX ( tmp, _measure )
RETURN
a
For more details, you can read related document: DAX Best Practices | MAQ Software Insights
Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Does it make quicker calculation?
User | Count |
---|---|
68 | |
63 | |
59 | |
54 | |
28 |
User | Count |
---|---|
183 | |
80 | |
62 | |
46 | |
38 |