Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hello dear members.
I need your help
I have a matrix displaying the products in the rows, the quarters in the columns and the sales in values. I have enabled the row and column totals and at the end of the columns I have the Full year.
I have also a slicer by quarter.
when a specific quarter is selected the full year shows the selected quarter. I need to display the sales of the selected quarter and in the total to maintain the FY total.
For example:
Q1 Q2 Q3 Q4 FY
Product1 100 100 100 100 400
Current results:
Q1 FY
Product1 100 100
Desired result: ( when Q1 is selected)
Q1 FY
Product1 100 400
Any ideas?
Solved! Go to Solution.
Please try this:
I create a set of sample:
Then add a measure:
MEASURE =
VAR _currentProduct =
SELECTEDVALUE ( 'Table'[Product] )
RETURN
IF (
ISINSCOPE ( 'Table'[Quarter] ),
SUM ( 'Table'[Values] ),
CALCULATE (
SUM ( 'Table'[Values] ),
FILTER ( ALL ( 'Table' ), 'Table'[Product] = _currentProduct )
)
)
Finally, add a matrix. the result is as follow:
Best Regards
Zhengdong Xu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you so much @Anonymous
I had to modify the code but it worked. Thank you so much 😊
Please try this:
I create a set of sample:
Then add a measure:
MEASURE =
VAR _currentProduct =
SELECTEDVALUE ( 'Table'[Product] )
RETURN
IF (
ISINSCOPE ( 'Table'[Quarter] ),
SUM ( 'Table'[Values] ),
CALCULATE (
SUM ( 'Table'[Values] ),
FILTER ( ALL ( 'Table' ), 'Table'[Product] = _currentProduct )
)
)
Finally, add a matrix. the result is as follow:
Best Regards
Zhengdong Xu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
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 | |
11 | |
10 | |
10 | |
9 |
User | Count |
---|---|
18 | |
13 | |
12 | |
11 | |
8 |