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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
July 2024 Power BI Update

Power BI Monthly Update - July 2024

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

July Newsletter

Fabric Community Update - July 2024

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