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
ThuJa23
Advocate II
Advocate II

Display latest percentage of action in Project

Hi everyone, 

 

I have 2 tables, one is Calendar table and second is Project table.

 

Project table included Project titel, project % Action (% of progress for each project, which is updated mostly end of each month or beginning of next month), Date (which has relationship with Calendar table)

ThuJa23_0-1634111632317.png

 

 

I would like to use Card as information to display the latest % Action of year when selecting each project titel. 

I tried DAX formular but it didn't display the right value, it shows Blank

 

Could you please hep me in this situation?

Thanks so much

 

Br,

Thu

1 ACCEPTED SOLUTION

Hi @ThuJa23 

I think you want to show latest percentage in card visual by measure. I use your sample to have a test.

Try this measure.

Latest Percentage = 
VAR _MAXDATE = MAX('Table'[Datum])
RETURN
CALCULATE(SUM('Table'[Fortschritt]),FILTER('Table','Table'[Datum] = _MAXDATE))

Result is as below.

1.png

 

 

Best Regards,
Rico Zhou

 

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

6 REPLIES 6
mh2587
Super User
Super User

Latest % =
var maxDate = CALCULATE(MAX(tbl_projektfortschritt1[Fort/Percentage]),FILTER(tbl_projektfortschritt1,tbl_projektfortschritt1[Datum]))
return maxDate
create this measure then convert it to percentage

Did I answer your question? If so, please mark my post as a solution!


Proud to be a Super User!




LinkedIn Icon
Muhammad Hasnain



amitchandak
Super User
Super User

@ThuJa23 ,Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

Hi @amitchandak 

 

I copy the data to excel and just change project title to ID to avoid sensitive information. 

https://docs.google.com/spreadsheets/d/1OWqzRg7jPyg5R9lp0ifNmGet48dxuBKd/edit?usp=sharing&ouid=10084...

 

You can download the file from this link

 

Thanks so much for your helps!

 

Br,

Thu

Hi @ThuJa23 

I think you want to show latest percentage in card visual by measure. I use your sample to have a test.

Try this measure.

Latest Percentage = 
VAR _MAXDATE = MAX('Table'[Datum])
RETURN
CALCULATE(SUM('Table'[Fortschritt]),FILTER('Table','Table'[Datum] = _MAXDATE))

Result is as below.

1.png

 

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @v-rzhou-msft ,

 

Sorry for my late replies! It definitely works to me, thanks so much 🙂

 

Br

Thu

Hi @amitchandak ,

 

I try to share the sample data, but the problem the data source from Access file and my company is locked the data to export out. 

In Power BI, I also use connect data directly to Access file. 

I will try to create a sample data same as original one.

 

Thanks for your help

 

Br,

Thu

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.