Supplies are limited. Contact info@espc.tech right away to save your spot before the conference sells out.
Get your discountScore big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount
Hello, I have follow measure, that works well with most part of values, but it shows error in some cases.
Solved! Go to Solution.
Finally if it has worked. Thanks a lot
Hi @Syndicate_Admin ,
The description of error "A table of several values was provided where a single value was expected." indicate that sometime result of one of your condition of if statement is retruning more than one value in evaluating expression, and as you say it is not happening all the time but with certain values/data, then can you please look at that data for both condition of your if statement. Else please share some data sample here.
Hope it helps!
@
Hello, no. It has not yet been resolved. I've tried the indicated but it doesn't work. Any more ideas? Thank you
pls try this
=If(values(Mastermaterialsap[DChain-spec.])="E51",
Measurement[Total months available],
MINX(
{ SEM1,SEM2,SEM3,SEM4,SEMAF2},[Value])
)
if this does not help you, then we need to look at your file
Hello the data type is the same. It happens that with most row elements it represents the value well. It only gives error in some elements and that is why when all the elements are selected it gives this error
Error Message:
MdxScript(Model) (711, 6) Calculation error in measurement 'Measures'[Semaphore 5monthsATW/CM]: A table of several values was provided where a single value was expected.
and I get the feeling that it gives conflict in the values that do not have data in some months, and therefore the MIN does not calculate well.
Thank you
sonia
I think you have an error because the type of data you get with measure is different but this power bi doesn't support.
write like this
= if(
values(Mastermaterialsap[DChain-spec.])="E51",
Measurement[Totalmonthsavailable]&"",
min(MIN(min(SEM1,SEM2),MIN(SEM3,SEM4)),SEMAF2)&""
)
Hello thank you very much. If you already try if error and coalesce, but it does not work, the representation in an object continues to fail for any of the values. Thank you
Hi,
if i've understood correctly you want to replace the error with 0.
you could try: