Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Anonymous
Not applicable

calculation

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

1 ACCEPTED SOLUTION
Anonymous
Not applicable

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.

vtangjiemsft_0-1671611810389.png

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. 

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

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.

vtangjiemsft_0-1671611810389.png

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. 

FreemanZ
Super User
Super User

hi @Anonymous 

try lik

Column=
IF(
Fact_UM'[Standrad factor]=BLANK,
"no data",
IF('Fact_UM'[Factor] >'Fact_UM'[Standrad factor], 'Fact_UM '[Menge])
)
Anonymous
Not applicable

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?

Anonymous
Not applicable

- So,  factor is a calculated column:
Factor =

CALCULATE (
DIVIDE (
SUM ( 'Fact_UM'[x] ),
SUM ( 'Fact_UM2'[y] )
),
ALLEXCEPT ('Fact_UM', 'Fact_UM'[Factory Order nr.]))

- Standard Factor has many Blanks 

Unfortunately, I cannot paste any data 😞 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors