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.
I like to filter rows based on a value and create a pivot table of that selection.
For example:
Date Category Value
1/1/2018 Bananas 20
1/1/2018 Oranges 10
1/1/2018 Apples 30
1/1/2018 Oranges 15
1/1/2018 Bananas 10
2/1/2018 Apples 10
2/1/2018 Apples 20
2/2/2018 Bananas 25
2/3/2018 Oranges 15
2/4/2018 Bananas 20
The result for example bananas should be:
Date Category Value
1/1/2018 Bananas 30
2/1/2018 Bananas 45
The final goal that I like to achieve is that I can calculate the difference between actual and previous period (month) for each category.
Anybody knows how to do this?
Thanks, Arno
Solved! Go to Solution.
You can get previousMonth Values with a MEASURE like
PreviousMonthValues = CALCULATE ( SUM ( TableName[Values] ), PREVIOUSMONTH ( TableName[Date] ), ALLEXCEPT ( TableName, TableName[Date], TableName[Category] ) )
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 |
---|---|
83 | |
75 | |
64 | |
39 | |
34 |
User | Count |
---|---|
107 | |
56 | |
52 | |
48 | |
40 |