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

Formula working in Power BI but not in Power Pivot

Hi everybody!

 

My issue is simple: i have the next formula that works perfectly in Power BI:

 

    CALCULATE (
        MIN(DATES[Year-Week]),
        DATESINPERIOD(DATES[FECHA],TODAY(),-1 ,DAY),
        ALL ( DATES )
    )

When i try to use it in the same table but in Power Pivot, i get the next error (translated):

 

The MIN function accepts an argument whose evaluation is numbers or dates and can not work with values ​​of the String type.

 

Any ideas?


Thanks in advance!

2 REPLIES 2
popov
Resolver III
Resolver III

Hi,

What the type of DATES[Year-Week] in PowerPivot? Check it.

Anonymous
Not applicable

@popovboth columns are text. I’ve already fixed it by making a new column ‘year-week’ without the hyphen and making it a type ‘whole number’. Nevertheless it’s still strange that the same formula works in PBI but does not in PP...

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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.

Top Solution Authors
Top Kudoed Authors