Hello,
I am new in this forum and I want to participate to find solutions for any user problems. I am an expert in MS Excel, but just a starter in PowerBI.
Right now I am working on a dashboard for price reductions and I want to make a sum of different types fo price reductions. My table looks like:
Reduction type / Price reduction / Year
X1 / -10 / 2019
X1 / -5 / 2020
X2 / -4 / 2020
X3 / 0 / 2019
X3 / -3 / 2019
X3 / -5 / 2019
The result should look like (in total)
Reduction type / Sum / Number
X1 / -15 / 2
X2 / -4 / 1
X3 / -8 /2
Furthermore, I would like to use a slicer for the selection of any year.
Up to now I have the following solution
For calculating the number I tried two solutions:
How could I solve this problem? I have already tried several things, but it didn't work so far....
The result should be a Table as I showed above with totals for each reduction type and a slicer for selecting different years.
THANK YOU!
I am new in this forum and I want to participate to find solutions for any user problems. I am an expert in MS Excel, but just a starter in PowerBI.
Right now I am working on a dashboard for price reductions and I want to make a sum of different types fo price reductions. My table looks like:
Reduction type / Price reduction / Year
X1 / -10 / 2019
X1 / -5 / 2020
X2 / -4 / 2020
X3 / 0 / 2019
X3 / -3 / 2019
X3 / -5 / 2019
The result should look like (in total)
Reduction type / Sum / Number
X1 / -15 / 2
X2 / -4 / 1
X3 / -8 /2
Furthermore, I would like to use a slicer for the selection of any year.
Up to now I have the following solution
- Calculation of the sum by using the values, slicer works properly (when changing the years, I get values for the years / when not selecting any years, I get the sum)
- Implementation of the slicer
For calculating the number I tried two solutions:
- Values "Count": However, this counts also if there is no price reduction (= price reduction: 0). Slicer works correctly indeed.
- New Column: This counts just entries with price reductions <0, BUT slicer doesn't work. Formula: CALCULATE(COUNT('Table1(Orders)'[PriceReduction]),'Table1(Orders)'[PriceReduction]<0)
How could I solve this problem? I have already tried several things, but it didn't work so far....
The result should be a Table as I showed above with totals for each reduction type and a slicer for selecting different years.
THANK YOU!