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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
ovonel
Post Prodigy
Post Prodigy

display INT as a well formatted date SSAS?

I am consuming LIVE from an SSAS cube.

I have my Fact table with the below column:

ovonel_0-1659538607188.png

 

 

When I display it in a matrix visual, in my pbix I get this:

ovonel_1-1659538619827.png

 

 

 

 

But in SSAS I see it as:

ovonel_2-1659538857303.png

 

 

 

 

How can I display it in a nice dd-MMMM-yyyy format?

 

 

 

Ps: the table comes from a ‘sql server’ source with INT data type.

1 ACCEPTED SOLUTION
v-jianboli-msft
Community Support
Community Support

Hi @ovonel ,

 

Please try:

vjianbolimsft_0-1659949323641.png

Output:

vjianbolimsft_1-1659949342900.png

Then create a measure to replace the date

Measure = 
var _year = VALUE(LEFT(MAX('Table_1'[Date]),4))
var _month = VALUE(RIGHT( LEFT(MAX('Table_1'[Date]),6),2))
var _day = VALUE(RIGHT(MAX('Table_1'[Date]),2))
return  FORMAT( DATE(_year,_month,_day),"dd-mmmm-yyyy")

 

Final output:

vjianbolimsft_2-1659949456097.png

Best Regards,

Jianbo Li

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

1 REPLY 1
v-jianboli-msft
Community Support
Community Support

Hi @ovonel ,

 

Please try:

vjianbolimsft_0-1659949323641.png

Output:

vjianbolimsft_1-1659949342900.png

Then create a measure to replace the date

Measure = 
var _year = VALUE(LEFT(MAX('Table_1'[Date]),4))
var _month = VALUE(RIGHT( LEFT(MAX('Table_1'[Date]),6),2))
var _day = VALUE(RIGHT(MAX('Table_1'[Date]),2))
return  FORMAT( DATE(_year,_month,_day),"dd-mmmm-yyyy")

 

Final output:

vjianbolimsft_2-1659949456097.png

Best Regards,

Jianbo Li

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.