Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi,
I am trying to declare variable in Power Pivot but getting error . I am not sure that i am making mistake or variable can not use in Power Pivot??
Please help
Solved! Go to Solution.
Hi @lavdeepk
The error message indicates that the DATA[QTY] is of text type while it needs to be of number type.
So, please check the type of that column and change it to number.
Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @lavdeepk
How do you declare variable in Power Pivot?
Could you show me some examples with screenshots and tell me what's the errors?
Is this you wanted?
https://powerbi.tips/2017/05/using-variables-within-dax/
Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Maggie,
As reqired i am sharing details with you please see Below SS.
I am able to declare variable in power bi and getting error when i use same code and same syntex in power pivot
Thanks
Lavdeep sharma
Hi @lavdeepk
The error message indicates that the DATA[QTY] is of text type while it needs to be of number type.
So, please check the type of that column and change it to number.
Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
User | Count |
---|---|
76 | |
75 | |
46 | |
31 | |
27 |
User | Count |
---|---|
99 | |
91 | |
51 | |
48 | |
47 |