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

View all the Fabric Data Days sessions on demand. View schedule

Reply
Rajesh_Konda
Frequent Visitor

pull cost of an ProductName between dates using power bi

Hi All,

 

I am new to Power BI and have requirment to pull cost of a product name by dates, how much it was increased/Decreased each day.

Ex : Reliance(Name) cost was 9.64 on 01/09/2023 and on 01/10/2023 cost was 10. Now i need to display cost difference as .36 cost  on 01/10/2023 date visual,similarly for other Names.

  •  One visual should display how much cost increased for all Names and the other should display how much it decreased by dates.
  • Other visual should display cost increased/decreased by Names.
  • How many new Names added days wise.
  • How many Names removed day wise.

Rajesh_Konda_0-1680454152198.png

Can any one please guide me how can i achieve this, and best visual to present the above. Thanks in advance.

 

2 REPLIES 2
Rajesh_Konda
Frequent Visitor

Thanks for the response @amitchandak ,

When i try with above query getting an error as 

The MAX function only accepts a column reference as an argument.

 

Can you help me out please, Table[Price] here default cost from table is not popping up.     

amitchandak
Super User
Super User

@Rajesh_Konda , Try a measure like

 

calculate(lastnonblankvalue(Table[Date], Table[Price]), filter(allselected(Table) , Table[Name] = max(Table[Name]) && Table[Date] <= max(Table[Date])))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors