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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
Stuk
Helper I
Helper I

dax formula problem

Hello ! i would like to create a column which give me the number of the week of the last appointement i have already tried Capture.PNG or Capture1.PNG
but it's not working does anyone can help me?

5 REPLIES 5
Sean
Community Champion
Community Champion

@Stuk

When you say its not working - are you getting an error message OR not the result you want?

 

Also you may try ISBLANK ( Table[Column] ) instead of ISEMPTY ( Table )

Thanks but i tell me " can't convert "" which is Text type into Date type"Capture.PNG
the problem probably don't come from the formula

Sean
Community Champion
Community Champion

@Stuk

WEEKNUM works on dates!

Does the [Dernier RDV] column contain dates?

If it does select the Column and convert it to DATA TYPE: Date

 

Data Type - Date.png

 

This should resolve it!

I can't convert it into Date ( actual Data type : Text) BUT in request editor the data type is DateCapture.PNGCapture1.PNG

Sean
Community Champion
Community Champion

Did you try converting it? (click OK if you get a pop up warning forget what it says something discouraging you to convert...)

 

If it's really Data Type: Date in the Query Editor it should convert with no errors in the Modeling tab!

Helpful resources

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