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

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
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.