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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.