Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi,
I calculated a column:
Orders with standard factor = IF('Fact_UM'[Factor] >'Fact_UM'[Standrad factor], 'Fact_UM '[Menge])
I would like to add that if standard factor is blank than column will show "no data" in that row.
Thank you for help!
Aleks
Solved! Go to Solution.
Hi @Anonymous ,
Due to the limitations of calculated columns, using calculated columns will result in an error of "Expressions that yield variant data-type cannot be used to define calculated columns", it is recommended that you change the measure values and display them as a visual in the table.
(1)We can create a measure.
Measure = IF(SUM('Table'[Column])==BLANK(),"no data",SUM('Table'[Column]))
(2)Then the result is as follows.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
Due to the limitations of calculated columns, using calculated columns will result in an error of "Expressions that yield variant data-type cannot be used to define calculated columns", it is recommended that you change the measure values and display them as a visual in the table.
(1)We can create a measure.
Measure = IF(SUM('Table'[Column])==BLANK(),"no data",SUM('Table'[Column]))
(2)Then the result is as follows.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
hi @Anonymous
try lik
Yes, I was trying this but doesn't work. I get this error "Expressions that yield variant data-type cannot be used to define calculated columns."
Hi @Anonymous could you paste some sample data and let us have a look?
- So, factor is a calculated column:
Factor =
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 39 | |
| 37 | |
| 33 | |
| 32 | |
| 29 |
| User | Count |
|---|---|
| 132 | |
| 88 | |
| 82 | |
| 68 | |
| 64 |