Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
¿Cómo puedo convertir la siguiente medida SQL en DAX?
if [A]=[B] then 'TRUE'
ELSEIF [B]='All' then 'TRUE' END
Solved! Go to Solution.
Hola @armughan , usted puede conseguir esto por
IF([A] = [B],TRUE(),IF([B] = 'All',TRUE(),BLANK()))
Hay @armughan,
Si desea crear una nueva columna , puede usar el siguiente dax:
Column = IF('Table'[A]='Table'[B]||'Table'[B]="All",TRUE(),BLANK())
Y si desea crear una medida, puede probar el siguiente dax:
Measure = IF(MAX('Table'[A])=MAX('Table'[B])||MAX('Table'[B])="All",TRUE(),BLANK())
Final obtendrá :
Deseo que sea útil para usted!
Saludos
Lucien
Hola @armughan , usted puede conseguir esto por
IF([A] = [B],TRUE(),IF([B] = 'All',TRUE(),BLANK()))
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.