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.
I am using 2 Measure for YTDs and can see the Forecast values are correct by Month-Year in the table, but cannot figure out how to get the current YTD forecast value into a scorecard (single value based on current Month when viewing). The value circled below in the pic is what I'm after - and obviously will change based on the month we're in. I'm guessing another Measure is needed. I tried to use "LASTNONBLANK" but cannot figure out the correct syntax in combination with the measure below (YTD_NOW). Any help would be appreciated.
My YTD Measures are:
Solved! Go to Solution.
@AWentzEco change your YTD Now measure like this
YTD Now = CALCULATE(
[YTDTOTAL],
KEEPFILTERS( MyTable[Savings Date] <= TODAY() )
)
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
Ok, I just updated the 'KEEPFILTERS' to 'FILTER' and it works!! I think this solved it - thank you for the help.
YTD_AGAIN = CALCULATE([YTDTotal],FILTER(‘MyTable,’MyTable'[Savings Date].[Date] <= TODAY()))
@AWentzEco change your YTD Now measure like this
YTD Now = CALCULATE(
[YTDTOTAL],
KEEPFILTERS( MyTable[Savings Date] <= TODAY() )
)
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
I created the new Measure and then tried using that in the Scorecard and it's still a blank value. Only when I click on the table value will the measure value appear in the Scorecard. Do I need to use Var with an IF to get today's value in there for the measure? I know I'm missing the Date link or something since none of those YTD measures I created work in the Scorecard - they all show as 'blank'.
YTD_AGAIN = CALCULATE([YTDTotal],KEEPFILTERS(‘MyTable’[Savings Date] <= TODAY()))
Ok, I just updated the 'KEEPFILTERS' to 'FILTER' and it works!! I think this solved it - thank you for the help.
YTD_AGAIN = CALCULATE([YTDTotal],FILTER(‘MyTable,’MyTable'[Savings Date].[Date] <= TODAY()))
@AWentzEco glad to hear. enjoy!! 🙂
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
49 | |
26 | |
21 | |
15 | |
12 |
User | Count |
---|---|
57 | |
49 | |
44 | |
19 | |
18 |