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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

DAX Measure

I have a table like this

Phaniii_0-1654521309020.png

 

I wan't to show total in card for rent. And currently the rent column data type is in text. so I'm unable to create measure for this. Is there any way to create measure for this column.

 

1 ACCEPTED SOLUTION
v-zhangti
Community Support
Community Support

Hi, @Anonymous 

 

Please try the following methods.

Value = IF([Rent]="NULL",Blank(),[Rent])

vzhangti_0-1654760794021.pngvzhangti_1-1654760815840.png

Is this the output you expect?

vzhangti_2-1654760878943.png

 

Best Regards,

Community Support Team _Charlotte

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
v-zhangti
Community Support
Community Support

Hi, @Anonymous 

 

Please try the following methods.

Value = IF([Rent]="NULL",Blank(),[Rent])

vzhangti_0-1654760794021.pngvzhangti_1-1654760815840.png

Is this the output you expect?

vzhangti_2-1654760878943.png

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Syk
Super User
Super User

You will want to replace the typed "NULL" with actual nulls. Then you can convert the rent field to a decimal and create your measure! You can replace the values in Power Query Editor

Syk_0-1654524640492.png

 

Anonymous
Not applicable

Currently I don't have access for data source

amitchandak
Super User
Super User

@Anonymous , You can change datatype to number .

 

or try a measure like

sumx(filter(Table, Table[Rent] <> "NULL"), [Rent]*1 )

 

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

It getting an error like Cannot convert value 'NULL' of type Text to type Number

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.