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
Roshan_201295
Frequent Visitor

How to get matrix last column value inside the card of power Bi ?

Hi

I am working on Finance data and That Data I have shown on the power bi dashboard in matrix table.
At the columns side I have month from March to April as per indian standard financial year.
I want to show the latest month data inside card of power Bi.

 

For example 

 

Lets suppose I have data from March to december and in that case I want data of decemeber only inside card and if dashboard
will get automate that time thing should capture that moment dynamically for any selection of finacial year in slicer.

 

I have tried but Dax for that one but not gettting as per my requirement I want intermediate month data also if in case I do have insufficient data till any month in any financial year of indian standard.

 

Please suggest Any Dax formulae so that I can get latest value of any month inside card of powerBi.

 

1 ACCEPTED SOLUTION
v-yalanwu-msft
Community Support
Community Support

Hi, @Roshan_201295 ;

You could create a flag measure, then apply it into visual filter.

flag = IF(EOMONTH(MAX('Table'[Date]),0) =EOMONTH(MAX('Slicer'[Date]),0),1,0)

Then apply it into filter.

vyalanwumsft_0-1651024647783.png

The final output is shown below:

vyalanwumsft_1-1651024686770.pngvyalanwumsft_2-1651024700387.png

Or can you share a simple example and what you want to output? It makes it easier to give you a solution.
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.

View solution in original post

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

Hi, @Roshan_201295 ;

You could create a flag measure, then apply it into visual filter.

flag = IF(EOMONTH(MAX('Table'[Date]),0) =EOMONTH(MAX('Slicer'[Date]),0),1,0)

Then apply it into filter.

vyalanwumsft_0-1651024647783.png

The final output is shown below:

vyalanwumsft_1-1651024686770.pngvyalanwumsft_2-1651024700387.png

Or can you share a simple example and what you want to output? It makes it easier to give you a solution.
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.

This is quite amazing Thanks !

speedramps
Super User
Super User

Hi again Roshan

 

Create Calandar table with:-

 

  •  Start of month  -  01/01/2021, 01/02/2021, 01/03/201, etc
  • Month Name - Jan 2021, Feb 2021, Mar 2021, etc 
  • Fiscal Year - 2020/22, 2021/22 , 2022/23, etc

In the moddlet tab sort Month Name by Start of month

 

Then add a tart of month columns to your fact table

 

The create 1:many relationship from calendat to fact table by Start of month

 

Congratulations, you can now create visuals with totals sales by Fiscal Year, by month.

 

I am an unpaid Power BI volunter. Please click the thumbs up if you like me helping you. Also click solved if I fix your problem. One problem per ticket please. If you have a new or related problem then start a new ticket.

Roshan_201295
Frequent Visitor

Hi I want Month start from April and end with March ..I want dax in Month Not on datewise @speedramps 

Please provide order from April and end with march

speedramps
Super User
Super User

Hi Roshan

 

Click here to download a example solution 

 

Lastest value =
VAR Last_date = MAX(Facts[Start of month])
RETURN
CALCULATE(
SUM(Facts[Sales]),
Facts[Start of month] = Last_date
)
 
I am a unpaid Power BI volunteer. Please click the thumbs up if you like me trying to help. Then click solved if this fixes your problem. Thank you.
 
Warm regards, speedramps

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.