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.
Hi @PaulDBrown and @all,
Here is one more Issue i am facing. I think you can fix this.
Continuing to the link below.
https://community.powerbi.com/t5/Desktop/sign-currency-for-only-few-rows-based-upon-condition/m-p/94...
I have subtracted two measures and applied in matrix which gives me an error as shown in the screenshot.
Change = [January] - [February]
Solved! Go to Solution.
Hi @Anonymous ,
We can try to use the following measure to meet your requirement:
Change =
VALUE (
SUBSTITUTE (
[January Total] & "",
"$",
""
)
)
- VALUE (
SUBSTITUTE (
[February Total] & "",
"$",
""
)
)
If it does not work, could you please share the formula of [Janury Total] and [February Total] if it does not contain any confidential information?
Best regards,
@Anonymous
Make sure that all columns and measures used in the calculations are formatted as some sort of number (not "general" nor "text" etc..)
Proud to be a Super User!
Paul on Linkedin.
Thanks for reply @PaulDBrown
The calculation used for Change are measures [January Total] and [February Total] which have the same data type as shown in below screenshot.
Change = [January Total] - [February Total]
Still results in same error. Is there any thing else I am missing ?
@Anonymous
Try changing the "Data Type: variant" to decimal number.
If you can't do it in the measure formatting options, make sure your columns you are refrencing in the measures for the calculations are formatted as decimal numbers.
Proud to be a Super User!
Paul on Linkedin.
Hi @PaulDBrown ,
Unable to change the data type from Variant as few are having $ format and few don't. I have checked from lowest calculating columns and measures. I have changed them from General to Decimal Number still its the same error.
i think some of the columns you use to calculate january total or february total is txt or some are date and other numeric.
Hi @santiagomur ,
Thanks for reply. I have checked with calculating columns and measures. All of them are set to Decimal Number.
@Anonymous
Are you using the function FORMAT in any of the columns or measures?
The error you are getting is saying that somewhere along the calculation line you have a non-number value(s)
Proud to be a Super User!
Paul on Linkedin.
@Anonymous
by "format" do you mean you are using the Function FORMAT( ) ?
Proud to be a Super User!
Paul on Linkedin.
Hi @Anonymous ,
We can try to use the following measure to meet your requirement:
Change =
VALUE (
SUBSTITUTE (
[January Total] & "",
"$",
""
)
)
- VALUE (
SUBSTITUTE (
[February Total] & "",
"$",
""
)
)
If it does not work, could you please share the formula of [Janury Total] and [February Total] if it does not contain any confidential information?
Best regards,
Hi,
Please try to apply the FORMAT function for the whole arithmetic operation and not for each measure.
so basicaly, FORMAT([January]-[February],....)
try use Jantotal=values(column) FebTot=Values(column) dif=[JanTotal]-[FebTotal]
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 |
---|---|
115 | |
100 | |
88 | |
69 | |
61 |
User | Count |
---|---|
151 | |
120 | |
103 | |
87 | |
68 |