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

Value According to date

Hello,

i have grid like below. I need simply values of items and POS wise according to date creteria.

makhdoomliaqat_0-1633780472032.png

i am using date creteria. and find out the according to date if i add card it should show on first value = 312,000 and end value = 0

Please help

1 ACCEPTED SOLUTION
Fowmy
Super User
Super User

@makhdoomliaqat 
Not entirely clear about the requirement, but you can add the following two measures to show the 1st and last values on card visuals based on the dates.

First Value = FIRSTNONBLANKVALUE( TableName[Date] , sum(TableName[ Fifoclosinginhand]))

 

Last Value = LASTNONBLANKVALUE( TableName[Date] , sum(TableName[ Fifoclosinginhand]))

 

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

View solution in original post

3 REPLIES 3
Fowmy
Super User
Super User

@makhdoomliaqat 
Not entirely clear about the requirement, but you can add the following two measures to show the 1st and last values on card visuals based on the dates.

First Value = FIRSTNONBLANKVALUE( TableName[Date] , sum(TableName[ Fifoclosinginhand]))

 

Last Value = LASTNONBLANKVALUE( TableName[Date] , sum(TableName[ Fifoclosinginhand]))

 

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

i Used it when i am working on same item it is showing correct result but when i change item its showing wrong.

See this

makhdoomliaqat_0-1633784811792.png

 

the result of first value should be 0 and last value is also zero because i am taking the creteria from 

01-01-2019 to 31-12-2019 

in this i have no record on 01-01-2019.

 





@makhdoomliaqat 

Sorry, I am not able to follow what you trying to achieve, please share a file with sample or dummy data to show the expected output.

Thanks 

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

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.