March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi,
I have the following table. I would like to create a card that shows the last sales value added to the table. In this case, the card should show 135. How can I create achieve this? Thank you so much!
Solved! Go to Solution.
Hello,bhanu_gautam ,thanks for your concern about this issue.
Your answer is excellent!
And I would like to share some additional solutions below.
Hi,@EstherBR .I am glad to help you.
If your real data is as per the test data you have provided and the Date column is registered in chronological order, i.e. the date of the next rank will always be greater than the date above it (i.e. chronological rank)
Then you can refer to my test below.
Last_notblankSales =
VAR _maxDate =
CALCULATE (
MAX ( 'Sheet2'[Date] ),
FILTER ( ALL ( Sheet2 ), NOT ( ISBLANK ( 'Sheet2'[Sales] ) ) )
)
RETURN
CALCULATE (
MAX ( 'Sheet2'[Sales] ),
FILTER ( ALL ( Sheet2 ), 'Sheet2'[Date] = _maxDate )
)
Here is my test data:
I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.
Best Regards,
Carson Jian,
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hello,bhanu_gautam ,thanks for your concern about this issue.
Your answer is excellent!
And I would like to share some additional solutions below.
Hi,@EstherBR .I am glad to help you.
If your real data is as per the test data you have provided and the Date column is registered in chronological order, i.e. the date of the next rank will always be greater than the date above it (i.e. chronological rank)
Then you can refer to my test below.
Last_notblankSales =
VAR _maxDate =
CALCULATE (
MAX ( 'Sheet2'[Date] ),
FILTER ( ALL ( Sheet2 ), NOT ( ISBLANK ( 'Sheet2'[Sales] ) ) )
)
RETURN
CALCULATE (
MAX ( 'Sheet2'[Sales] ),
FILTER ( ALL ( Sheet2 ), 'Sheet2'[Date] = _maxDate )
)
Here is my test data:
I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.
Best Regards,
Carson Jian,
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@EstherBR , You can create a measure
Proud to be a Super User! |
|
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
125 | |
85 | |
69 | |
54 | |
45 |
User | Count |
---|---|
204 | |
106 | |
98 | |
65 | |
54 |