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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
rwong1
Helper III
Helper III

FORMULA ISSUE WITH ENDING VALUE

Hi,

 

I have an issue.  I created a measure to get the ending revenue figure based on year selected but it is showing a strange revenue figure instead of displaying 2022's revenue which should be $26,695,391.35.  I'm not sure what I'm doing wrong.  The formula I'm using in my Ending Year Value measure is: 

Ending Year Value = CALCULATE([Actual Revenue],FILTER(ALL('Revenue Table'[Year]),'Revenue Table'[Year]=[LastYear]))
 
The formula I'm using for LastYear measure is:
LastYear =
LASTNONBLANK (
    ALL ( 'Year Table'[Year]),
    [Actual Revenue]
)

 

See the image below:

 

 

rwong1_0-1696136101140.png

 

1 REPLY 1
Ashish_Mathur
Super User
Super User

Hi,

If you want to show the revenue of the selected year, then just drag the actual revenue measure to the card visual.


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

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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