Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Guys, good morning!
I need help to discover the recurrence of a product in my inventory, in my data sheet I have two columns (Date, Product) where 1 product can have several dates being 1 date per line, what I need to know is the percentage of products that are in my stock today since yesterday, ie 100 products I have in stock today, how much % is there since yesterday?
thank you in advance
Solved! Go to Solution.
@Vitor_sp_bo , with help from date table
This Day = CALCULATE(sum('Table'[Qty]), FILTER(ALL('Date'),'Date'[Date]=max('Date'[Date])))
Last Day = CALCULATE(sum('Table'[Qty]), FILTER(ALL('Date'),'Date'[Date]=max('Date'[Date])-1))
then
Present on both days = Present on both days = countx(Values(Table[Product]), not(isblank([Last Day])) && not(isblank([This Day])) )
Presnet today = countx(Values(Table[Product]), not(isblank([This Day])) )
Then calculate the ratio
Idea from
@Vitor_sp_bo , with help from date table
This Day = CALCULATE(sum('Table'[Qty]), FILTER(ALL('Date'),'Date'[Date]=max('Date'[Date])))
Last Day = CALCULATE(sum('Table'[Qty]), FILTER(ALL('Date'),'Date'[Date]=max('Date'[Date])-1))
then
Present on both days = Present on both days = countx(Values(Table[Product]), not(isblank([Last Day])) && not(isblank([This Day])) )
Presnet today = countx(Values(Table[Product]), not(isblank([This Day])) )
Then calculate the ratio
Idea from
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 40 | |
| 37 | |
| 33 | |
| 29 | |
| 27 |
| User | Count |
|---|---|
| 134 | |
| 104 | |
| 63 | |
| 60 | |
| 55 |