IF function (DAX) - DAX | Microsoft Learn
learn.microsoft.com › en-us › daxJun 21, 2022 · The IF function can return a variant data type if value_if_true and value_if_false are of different data types, but the function attempts to return a single data type if both value_if_true and value_if_false are of numeric data types. In the latter case, the IF function will implicitly convert data types to accommodate both values.
Filter functions (DAX) - DAX | Microsoft Learn
learn.microsoft.com › en-us › daxDec 12, 2022 · In this article. In this category. The filter and value functions in DAX are some of the most complex and powerful, and differ greatly from Excel functions. The lookup functions work by using tables and relationships, like a database. The filtering functions let you manipulate data context to create dynamic calculations.
DAX Syntax for If Statement with Filter - Power BI
community.powerbi.com › t5 › DesktopFeb 21, 2018 · DAX Syntax for If Statement with Filter. 02-21-2018 09:43 AM. Hello Everyone, Here's what I am trying to do. Right now I have a measure thats pulling back import duties based on a country. msr_221ImportDutyRate = If (ISFILTERED ('Trade Compliance' [Grower Country (Exporter)]) && HASONEVALUE ('Trade Compliance' [Grower Country (Exporter)]), CONCATENATEX (VALUES ('Trade Compliance' [Item Duty Rate]), [Item Duty Rate],", ", [Item Duty Rate],ASC),"")