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

show recent available data

I want to show the recent available data not the most recent data. say I have a table below.

 

pic1.PNG

 

 

 

 

 

 

 

Given the above table, I want to show a table similar to below

pic2.PNG

 

 

 

 

 

 

 

but instead, I'm getting this table

pic3.PNG

 

 

 

 

 

 

 

Any solution into this problem? how do I solve this issue where in I wanted to show the recent available data not the recent data? Thank you!

 

Many thanks,

1 ACCEPTED SOLUTION
Eric_Zhang
Employee
Employee


@vanquisher11 wrote:

I want to show the recent available data not the most recent data. say I have a table below.

 

pic1.PNG

 

 

 

 

 

 

 

Given the above table, I want to show a table similar to below

pic2.PNG

 

 

 

 

 

 

 

but instead, I'm getting this table

pic3.PNG

 

 

 

 

 

 

 

Any solution into this problem? how do I solve this issue where in I wanted to show the recent available data not the recent data? Thank you!

 

Many thanks,


@vanquisher11

I'd suggest re-model the data by unpivot.

unpivot.gif

 

Then create a measure as below. See more in the attached pbix file.

Measure = SUMX(FILTER(yourTable,yourTable[day]=MAX(yourTable[day])),yourTable[Value])

Capture.PNG

View solution in original post

3 REPLIES 3
Eric_Zhang
Employee
Employee


@vanquisher11 wrote:

I want to show the recent available data not the most recent data. say I have a table below.

 

pic1.PNG

 

 

 

 

 

 

 

Given the above table, I want to show a table similar to below

pic2.PNG

 

 

 

 

 

 

 

but instead, I'm getting this table

pic3.PNG

 

 

 

 

 

 

 

Any solution into this problem? how do I solve this issue where in I wanted to show the recent available data not the recent data? Thank you!

 

Many thanks,


@vanquisher11

I'd suggest re-model the data by unpivot.

unpivot.gif

 

Then create a measure as below. See more in the attached pbix file.

Measure = SUMX(FILTER(yourTable,yourTable[day]=MAX(yourTable[day])),yourTable[Value])

Capture.PNG

Ashish_Mathur
Super User
Super User

Hi @vanquisher11,

 

In your first table, you have Day 1, Day 2 etc. in the headings.  Is that how your data actually is or do you have actual dates there?


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

@vanquisher11

Create a calculated column this way

 

a1.PNG

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.