Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.