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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
mohittimpus
Helper V
Helper V

Summarize table creation issue

Hello,

I need a help to create summrize table.

Actually I can create a Summrize table but problem is when I add date to a meaure, It shows it in numeric format. 

Here is screen shot :  Test1 and Test2 should have accociate date but it shows 44,300 and 43835 repectively

mohittimpus_0-1619510360824.png

Here is a file attached : click here

 

Thank you

1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Hi, @mohittimpus 

I think it is because of the second one's (Test2) data type.

In a general situation, one measure can have one data type.

In order to see the date-type for the first one and the last one, please try to write your measure something like below.

 

measurefix =
SWITCH (
SELECTEDVALUE ( summrizeTable[Names] ),
"Test1", FORMAT ( MAX ( data[Date] ), "ddmmmmyyyy" ),
"Test2", MAX ( 'Table 1'[values] ),
"Test3", FORMAT ( MIN ( 'Date Table'[weekEnd date] ), "ddmmmmyyyy" )
)

 

 

Hi, My name is Jihwan Kim.

 

If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.

 

Linkedin: linkedin.com/in/jihwankim1975/

Twitter: twitter.com/Jihwan_JHKIM


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

View solution in original post

1 REPLY 1
Jihwan_Kim
Super User
Super User

Hi, @mohittimpus 

I think it is because of the second one's (Test2) data type.

In a general situation, one measure can have one data type.

In order to see the date-type for the first one and the last one, please try to write your measure something like below.

 

measurefix =
SWITCH (
SELECTEDVALUE ( summrizeTable[Names] ),
"Test1", FORMAT ( MAX ( data[Date] ), "ddmmmmyyyy" ),
"Test2", MAX ( 'Table 1'[values] ),
"Test3", FORMAT ( MIN ( 'Date Table'[weekEnd date] ), "ddmmmmyyyy" )
)

 

 

Hi, My name is Jihwan Kim.

 

If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.

 

Linkedin: linkedin.com/in/jihwankim1975/

Twitter: twitter.com/Jihwan_JHKIM


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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