cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
bhaskarasalla
Frequent Visitor

capture date when product price change from 0 to some number

Hey PowerBi Community,

I need your assistance to resolve one issue-
Problem statement goes like this-

I get one table from client at every 3 hours having ProductName & Price,
generally price having 0 values
I need to capture that date on which this Price get change from 0 to some no for product

say on 1st aug i got this table
Product Name    Price
A                          0
B                          0
C                          0
D                         0

i will refresh this report every 3 hours, lets say on sep 12, product B price get change to some value (other than 0) say 25,
i have to capture that date for product B,

when client refresh this report on any day say sep 15,
report should look like
PruductName   Price            DateChange
A                        0               -(or lets say current date)
B                       25                 sep 12,2019
C                       0                 -(or lets say current date)
D                      0                 -(or lets say current date)

I am trying to store this datechange column in some dummy table
but still havent got any solution.

Let me know if you any solution for this problem
Thanks

1 ACCEPTED SOLUTION
JosefPrakljacic
Solution Sage
Solution Sage

Hey @bhaskarasalla,

 

I don't think Power BI will do this alone. I'd also like to know if you have PowerBI Premium where you could use the Incremental Refresh?

 

Why do I whink that this wont work?

 

You need the information that the data has changed. So an UpdateDate for instance (then it could work with the Incremental Refresh maybe).

 

If you don't have a premium then you will need a place to persist the old data.

 

-OR-

 

You'd always have to load two tables -> the new one and the old one to compare, but without a Perstization logic for the old data (and how to determine "old data"?)  on a server you won't be able to do that.

 

If this post was helpful may I ask you to mark it as solution and give it some kudos?

Have a nice day!

BR,
Josef

View solution in original post

2 REPLIES 2
JosefPrakljacic
Solution Sage
Solution Sage

Hey @bhaskarasalla,

 

I don't think Power BI will do this alone. I'd also like to know if you have PowerBI Premium where you could use the Incremental Refresh?

 

Why do I whink that this wont work?

 

You need the information that the data has changed. So an UpdateDate for instance (then it could work with the Incremental Refresh maybe).

 

If you don't have a premium then you will need a place to persist the old data.

 

-OR-

 

You'd always have to load two tables -> the new one and the old one to compare, but without a Perstization logic for the old data (and how to determine "old data"?)  on a server you won't be able to do that.

 

If this post was helpful may I ask you to mark it as solution and give it some kudos?

Have a nice day!

BR,
Josef

KevinParijs
Frequent Visitor

Hi @bhaskarasalla ,

I'm pretty new to DAX so I can only give you a suggestion, hopefully this helps you.

 

If I would have to tackle this situation I would use Microsoft Flow to read the excel file and write it to an PBI dataset.
I would expect that this is also possible with appending queries through the Power Query Editor.

 

Regards,

K.

Helpful resources

Announcements
Carousel_PBI_Wave1

2023 Release Wave 1 Plans

Power BI release plans for 2023 release wave 1 describes all new features releasing from April 2023 through September 2023.

Power BI Summit Carousel 2

Global Power BI Training

Make sure you register today for the Power BI Summit 2023. Don't miss all of the great sessions and speakers!

BizApps LATAM 2023

Business Application LATAM Summit 2023

Join the biggest FREE Business Applications Event in LATAM this February.

Power Platform Bootcamp

Global Power Platform Bootcamp

In this bootcamp we will deep-dive into Microsoft’s Power Platform stack with hands-on sessions and labs, delivered to you by experts and community leaders.

Top Solution Authors
Top Kudoed Authors