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
jppuam
Helper V
Helper V

Calculate table with calculate the last date

Hello, i want to create a calculated table with the client code and the last date that he complains. How can i do this ?

imagem1.jpg

In this example, i should have a table with the following data:

1031 20 May

5789 25 Jun

.....

15490 16 Sep (and so one)

 

thank you

Joao Rodrigues

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

Hi @jppuam ,

You may no need to create a calculated table, just follow the steps in the below screenshot to get the latest complain date.

Max complain date.JPG

Best Regards
Community Support Team _ Rena Ruan
If this post helps, then please consider Accept it as the solution to help the other members find it more.

Community Support Team _ Rena
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

4 REPLIES 4
v-yiruan-msft
Community Support
Community Support

Hi @jppuam ,

You may no need to create a calculated table, just follow the steps in the below screenshot to get the latest complain date.

Max complain date.JPG

Best Regards
Community Support Team _ Rena Ruan
If this post helps, then please consider Accept it as the solution to help the other members find it more.

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Ashish_Mathur
Super User
Super User

Hi,

Drag Client Code to the Table visual and write this measure

=max(Data[Complain Date])

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
CNENFRNL
Community Champion
Community Champion

Hi, @jppuam , you may want to try this for a calculated table,

 

ADDCOLUMNS (
    SUMMARIZE ( 'Table', 'Table'[Cleint code] ),
    "Last Complain Date", CALCULATE ( MAX ( 'Table'[Date] ) )
)

or equally,

SUMMARIZECOLUMNS (
    'Table'[Cleint code],
    "Last Complain Date", MAX ( 'Table'[Date] )
)

 


Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension!

DAX is simple, but NOT EASY!

sanalytics
Solution Supplier
Solution Supplier

@jppuam 

 

Try this below measure for creating calculated table

 

SUMMARIZE('Table','Table'[Cleint code],"Lastdate",MAX('Table'[Date]))
 
regards,
sanalytics
if it is your solution please accept it as solution and please like

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.