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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

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!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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