Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hi,
I need to know how much I bought de PrdID 1 in 2018 where PrdID 1 in 2018 es 2 like the column PrdIDLY show.
ProductId | DAteKey | PurchaseDate | Amount | Index | PrdID | PrdIDLY |
1 | 20190405 | 05/04/2019 | 3 | 1 | 1 | 2 |
1 | 20190405 | 05/04/2019 | 2 | 1 | 1 | 2 |
1 | 20190407 | 07/04/2019 | 2 | 1 | 1 | 2 |
1 | 20190407 | 07/04/2019 | 1 | 1 | 1 | 2 |
2 | 20180405 | 05/04/2018 | 5 | 2 | 2 | 3 |
2 | 20180405 | 05/04/2018 | 5 | 2 | 2 | 3 |
Regards
Solved! Go to Solution.
Hi @bestevez
If I understand you correct try a measure
Measure = CALCULATE(
SUM('Table'[Amount]);
FILTER(ALL('Table');'Table'[PrdID]=SELECTEDVALUE('Table'[PrdIDLY]) && YEAR('Table'[PurchaseDate])=YEAR(SELECTEDVALUE('Table'[PurchaseDate]))-1)
)
do not hesitate to give a kudo to useful posts and mark solutions as solution
Hi @bestevez
If I understand you correct try a measure
Measure = CALCULATE(
SUM('Table'[Amount]);
FILTER(ALL('Table');'Table'[PrdID]=SELECTEDVALUE('Table'[PrdIDLY]) && YEAR('Table'[PurchaseDate])=YEAR(SELECTEDVALUE('Table'[PurchaseDate]))-1)
)
do not hesitate to give a kudo to useful posts and mark solutions as solution
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
14 | |
10 | |
10 | |
9 | |
9 |
User | Count |
---|---|
20 | |
13 | |
12 | |
11 | |
8 |