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
Niraj_vora0106
Helper III
Helper III

Value / Format function

Hi, community

I have a doubt regarding Values / Format DAX in Power BI Desktop.

 

I'm using 2 Filter functions in a DAX, yes there's a connection between 2 tables ie: Query & OrderMapping

 

below is the DAX code:

Niraj_vora0106_2-1688549743849.png

 

 

I'm getting the following error:

Niraj_vora0106_1-1688549719243.png

 

Please help how do I solve using Value / Format function.

 

1 ACCEPTED SOLUTION

Hi @Niraj_vora0106 ,

How about changing the column type here?

vrongtiepmsft_0-1688966637161.png

 

 

Or you can change the number 1 to "1". Then the number 1 is the text type.

 

 

How to Get Your Question Answered Quickly 

 

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

 

Best Regards
Community Support Team _ Rongtie

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

4 REPLIES 4
v-rongtiep-msft
Community Support
Community Support

Hi @Niraj_vora0106 ,

The error has pointed out that this is because of your data type. Please check if column Queryrespnsibility is of type number.

 

Please check the columns' type.

 

 

How to Get Your Question Answered Quickly 

 

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

 

Best Regards
Community Support Team _ Rongtie

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

 

 

@v-rongtiep-msft 

 

How can I change QueryResponsibility type to number when the values are in String / Text..?

 

are you trying to say I need to have both values similar? then only multiple Filter conditions will work..??

Hi @Niraj_vora0106 ,

How about changing the column type here?

vrongtiepmsft_0-1688966637161.png

 

 

Or you can change the number 1 to "1". Then the number 1 is the text type.

 

 

How to Get Your Question Answered Quickly 

 

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

 

Best Regards
Community Support Team _ Rongtie

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

 

 

@v-rongtiep-msft 

 

I'll try changing the Number value from 1 to "1".

Thank you so much for your help!

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.