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

Error DAX comparison operations do not support comparing values of type Text with values of type Num

Hi all,

 

Im new here and I'm having this issue DAX comparison operations do not support comparing values of type Text with values of type Number. This is the DAX I'm trying to use:

LY_MARS: = CALCULATE([Venta],FILTER(ALL('DATE'),'DATE'[Periodo]<=MAX('DATE'[Periodo]) && 'DATE'[AÑO]=MAX('DATE'[AÑO])-1))
This basically shows the previouse value of a filtered year as shown below:

Values 

Sum of Value2,121,200
LY_MARS10,524,293

Thanks in advance,

Julian C.

 
 
1 REPLY 1
Anonymous
Not applicable

Please learn how to correctly use time-intel functions:

https://www.sqlbi.com/tv/time-intelligence-in-microsoft-power-bi/

Best
D

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.

Top Solution Authors