DAX Help

joshik

New Member
Joined
May 11, 2020
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hi All,
I have a question regrading using Filters in DAX.
IPA = FILTER('Database','Database'[CT]= 60 && 'Database'[DD] = 1)
DAX comparison operations do not support comparing values of type Text with values of type Integer. Consider using the VALUE or FORMAT function to convert one of the values.
Can someone help me with it?
Thank you.
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Yes. One or both of your columns must be formatted as text. Either change the column to number or change your filter.
FILTER('Database','Database'[CT]= “60” && 'Database'[DD] = ”1”)

btw, your formula is not valid anyway as you can’t return a table in a measure or a column.
 
Upvote 0
Yes. One or both of your columns must be formatted as text. Either change the column to number or change your filter.
FILTER('Database','Database'[CT]= “60” && 'Database'[DD] = ”1”)

btw, your formula is not valid anyway as you can’t return a table in a measure or a column.

Can you help me, how to use filters for two different column name?
 
Upvote 0
There is nothing wrong with the filter function. It is just that it can't be used on its own. You need something like this

CALCULATE([Total Sales],filter(Products,Products[Category]="Bikes" && Products[Color]="Red"))
 
Upvote 0

Forum statistics

Threads
1,223,793
Messages
6,174,623
Members
452,574
Latest member
hang_and_bang

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top