Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hello, sorry to bother you all guys, but I'm struggling with this and can't figure out how to solve it.
I have this formula of a calculated column from tableau:
I'm trying to replicate it and do the same en power bi, but I can't get it to work properly since I cant replicate in a column the use of MAX and FIXED, I tried this but I don't know if its correct and it's missing the MAX also:
Could somebody give me a hand?
Thank you very much!
Solved! Go to Solution.
Hi @Anonymous ,
You can use the MAXX function instead:
https://docs.microsoft.com/en-us/dax/maxx-function-dax
SEMAFORO EPICA =
VAR AUX =
SWITCH (
'JIRA_INGENIERIA_FEATURES'[JIRA_INGENIERIA_EPICAS.ESTADO],
"Cerrado", 0.1,
"Cancelado", 0.11,
"En espera", 0.5,
IF (
'JIRA_INGENIERIA_FEATURES'[SEMAFORO FEATURE] = 2
|| 'JIRA_INGENIERIA_FEATURES'[SEMAFORO FEATURE] = 3,
'JIRA_INGENIERIA_FEATURES'[SEMAFORO FEATURE],
1
)
)
RETURN
MAXX (
FILTER (
ALL ( JIRA_INGENIERIA_FEATURES ),
'JIRA_INGENIERIA_FEATURES'[JIRA_INGENIERIA_EPICAS.ESTADO]
= MAX ( 'JIRA_INGENIERIA_FEATURES'[JIRA_INGENIERIA_EPICAS.ESTADO] )
),
AUX
)
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
You can use the MAXX function instead:
https://docs.microsoft.com/en-us/dax/maxx-function-dax
SEMAFORO EPICA =
VAR AUX =
SWITCH (
'JIRA_INGENIERIA_FEATURES'[JIRA_INGENIERIA_EPICAS.ESTADO],
"Cerrado", 0.1,
"Cancelado", 0.11,
"En espera", 0.5,
IF (
'JIRA_INGENIERIA_FEATURES'[SEMAFORO FEATURE] = 2
|| 'JIRA_INGENIERIA_FEATURES'[SEMAFORO FEATURE] = 3,
'JIRA_INGENIERIA_FEATURES'[SEMAFORO FEATURE],
1
)
)
RETURN
MAXX (
FILTER (
ALL ( JIRA_INGENIERIA_FEATURES ),
'JIRA_INGENIERIA_FEATURES'[JIRA_INGENIERIA_EPICAS.ESTADO]
= MAX ( 'JIRA_INGENIERIA_FEATURES'[JIRA_INGENIERIA_EPICAS.ESTADO] )
),
AUX
)
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you so much! It worked great!
@Anonymous for fixed LOD, You have use allexcept with fact /central tbale
example
, calculate([Net], allexcept (sales, Item[Brand], Geo[City]) )
Try
LOD- FIXED (Level of Details) - Revisited: https://youtu.be/hU-cVOwDCvY
Hello! Yes, I'm using it, but my question remains for the MAX, how can I include it and do as the formula in tableau? If I try to copy it to DAX i cant
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
107 | |
98 | |
78 | |
65 | |
53 |
User | Count |
---|---|
144 | |
104 | |
100 | |
86 | |
64 |