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

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.

Reply
jch
Employee
Employee

Card displaying value from last month from a particular column

Does anyone have suggestions for displaying the highlighted value from

- the 'All Directions Index' value

- at the last month

- in the Plan row

- in a Card visual?

jch_1-1625239589301.png

 

 

1 ACCEPTED SOLUTION

Hi,

You may download my PBI file from here.

Hope this helps.

Untitled.png


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

View solution in original post

5 REPLIES 5
v-yalanwu-msft
Community Support
Community Support

Hi, @jch ;

You could create a measure as follows ,and you could change "Actual" to "Plan" according to your needs:

Measure =
CALCULATE (
    SUM ( [North Index] ) + SUM ( [South Index] ),
    FILTER (
        ALL ( 'Table' ),
        EOMONTH ( [Month], 0 ) = EOMONTH ( TODAY (), -1 )
            && [Actual / Plan] = "Actual"
    )
)

The final output is shown below:

vyalanwumsft_0-1625475984386.png

 

Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Fowmy
Super User
Super User

@jch 

I am not sure if you want the last available value or the last month from the current month. Also, you highlighted the actual row but you mentioned Plan. Try the following measure and insert it in a card visual. You can change "Plan" to "Actual" in the formula if you need

Actual Last Month = 
CALCULATE(
    LASTNONBLANKVALUE( Table2[Month] , SUM(Table2[All Directions Index] )),
    Table2[Actual / Plan] = "Plan"
)





Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

vanessafvg
Super User
Super User

it should be fairly easy, easier if you provide sample data in text form.  Can you paste the data in text form?

 





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Thanks!

 

MonthActual / PlanAll Directions IndexNorth IndexSouth Index
Apr 2021Actual0.170.070.10
Apr 2021Plan0.140.060.08
May 2021Actual0.190.090.10
May 2021Plan0.150.100.05
Jun 2021Actual0.210.110.10

Hi,

You may download my PBI file from here.

Hope this helps.

Untitled.png


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

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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