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.
Hi guys!
I'm hesitanting:
I want to calculate in a range from 01 to 07 but is text not number.
I've created this formula and it works perfectly:
Do you think that on this way is the best option?
Is there another way as for example:
Or whatever.
Solved! Go to Solution.
Hi @Luis_Caston ,
You can modify it to the following measure:
Test1_Measure =
var _text=
ISERROR(VALUE(MAX('Cultivo'[CodigoFinca])))
var _if=
IF(
_text=FALSE(),MAX([CodigoFinca]),BLANK())
return
VALUE(_if)
Test2_Measure =
SUMX(
FILTER(ALL('Cultivo'),
[Test1_Measure]<=8&&[Test1_Measure]<>BLANK()),[Hectáreas Final])
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 @Luis_Caston ,
You can modify it to the following measure:
Test1_Measure =
var _text=
ISERROR(VALUE(MAX('Cultivo'[CodigoFinca])))
var _if=
IF(
_text=FALSE(),MAX([CodigoFinca]),BLANK())
return
VALUE(_if)
Test2_Measure =
SUMX(
FILTER(ALL('Cultivo'),
[Test1_Measure]<=8&&[Test1_Measure]<>BLANK()),[Hectáreas Final])
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 @Anonymous!!
Pretty amazing!
I've adapted the formula following your criteria and works perfectly.
"[HA codigo finca]" is yours "Test1_Meausre]".
Hi @Luis_Caston ,
I created some data:
You can use ISERROR() and VALUE() to determine TRUE/FALSE.
Create measure.
Measure =
SUMX(
FILTER(ALL('Cultivo'),
ISERROR(
VALUE('Cultivo'[CodigoFinca]))=FALSE()),[Hectáreas Final])
Result:
You can try placing the following filter condition in your formula:
ISERROR(VALUE('Cultivo'[CodigoFinca]))=FALSE())
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!!
First of all, thank you for your support!
Good idea 💪
In this case would be perfect if I would want to sum all the range except "text" from "01" to "10".
But if I only want to sum from "01" to "08"?
User | Count |
---|---|
58 | |
54 | |
53 | |
49 | |
30 |
User | Count |
---|---|
177 | |
88 | |
70 | |
48 | |
48 |