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

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.

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 )

 

 

Anonymous
Not applicable

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

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.