Forum Discussion
MEASURE IS TOO SLOW
Hi ,
i have created the below measure and its very slow:
also is it better to have multiple measures or have all the formulas in one?
- In the next step, this video could help you.
Debug DAX using Variables in Power BI
https://www.youtube.com/watch?v=9SV2VnYbgg4
Debugging a slow Power BI report with Phil Seamark
https://www.youtube.com/watch?v=eABg872TAJU
If I answered your question, please mark my post as solution, this will also help others.
Please give Kudos for support.
6 Replies
- mwegenerMost Valuable Professional
Hi hadjigeo,
Please share your DAX Code as text.
Please make the DAX code more readable with the daxformater. https://www.daxformatter.com/
Please use DAX variables. https://www.sqlbi.com/articles/variables-in-dax/
Please share your PBIX-File.
Please give Kudos for support.
If I answered your question, please mark my post as solution, this will also help others.
Looking for German Power BI content? Visit my blog.
http://www.thinkbi.de/- hadjigeoHelper I
Hi mwegener ,
find below the text:
Sales3test =
IF (
[Validation Simulation] = 0,
0,
IF (
SUM ( 'PM Main JO'[Month Number] ) = 12,
MIN (
IF (
AND (
'Sales Achievement %'[Sales Achievement] >= 0.8,
'Sales Achievement %'[Sales Achievement] <= 1
),
( 0.5 + ( 'Sales Achievement %'[Sales Achievement] - 0.8 ) * 2.5 ),
IF (
AND (
'Sales Achievement %'[Sales Achievement] > 1,
AND (
'GP% Achievement'[GP% Achievement] >= 1,
OR (
'GP Achievement'[GP Achievement] >= 1,
'GP Achievement'[GP Achievement] <= 1
)
)
),
( 1 + ( ( 'Sales Achievement %'[Sales Achievement] - 1 ) ) * 2 ),
MIN ( 'Sales Achievement %'[Sales Achievement], 1.5 )
)
),
2
),
MIN (
IF (
AND (
'Sales Achievement %'[Sales Achievement] >= 0.8,
'Sales Achievement %'[Sales Achievement] <= 1
),
( 0.5 + ( 'Sales Achievement %'[Sales Achievement] - 0.8 ) * 2.5 ),
IF (
AND (
'Sales Achievement %'[Sales Achievement] > 1,
AND (
'GP% Achievement'[GP% Achievement] >= 1,
OR (
'GP Achievement'[GP Achievement] >= 1,
'GP Achievement'[GP Achievement] <= 1
)
)
),
( 1 ),
MIN ( 'Sales Achievement %'[Sales Achievement], 1 )
)
),
2
)
)
)