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.
I've created a dashboar as the next image show it, and I need to create new lines that show the result Sales - SVC and after that Its show into report but as lines bellow these lines as result.
I looked for differents website but all show how created new measure or calculate information, but I didn't the right answer to my problem.
Thanks in advance.
Solved! Go to Solution.
Hi @Marco_Antonio ,
Pls test the below dax to create a new column:
Table 2 =
UNION (
SUMMARIZE (
'Table',
'Table'[Quarter],
'Table'[Month],
"Type1", "SALE-Svc",
"Type2", " ",
"value",
CALCULATE (
SUM ( 'Table'[value] ),
FILTER (
ALL ( 'Table' ),
'Table'[Quarter] = MAX ( 'Table'[Quarter] )
&& 'Table'[Month] = MAX ( 'Table'[Month] )
&& 'Table'[Type1] = "Sales"
)
)
- CALCULATE (
SUM ( 'Table'[value] ),
FILTER (
ALL ( 'Table' ),
'Table'[Quarter] = MAX ( 'Table'[Quarter] )
&& 'Table'[Month] = MAX ( 'Table'[Month] )
&& 'Table'[Type1] = "Svc"
)
)
),
'Table'
)
before:
after:
Did I answer your question? Mark my post as a solution!
Best Regards
Lucien
Thanks, I am trying to aplied your answer but I cannot do yet I am with a lot of work right now and this question it for a new proyect and proposal to my bosses.
But sound logic and good, thanks for your time.
Hi @Marco_Antonio ,
Pls test the below dax to create a new column:
Table 2 =
UNION (
SUMMARIZE (
'Table',
'Table'[Quarter],
'Table'[Month],
"Type1", "SALE-Svc",
"Type2", " ",
"value",
CALCULATE (
SUM ( 'Table'[value] ),
FILTER (
ALL ( 'Table' ),
'Table'[Quarter] = MAX ( 'Table'[Quarter] )
&& 'Table'[Month] = MAX ( 'Table'[Month] )
&& 'Table'[Type1] = "Sales"
)
)
- CALCULATE (
SUM ( 'Table'[value] ),
FILTER (
ALL ( 'Table' ),
'Table'[Quarter] = MAX ( 'Table'[Quarter] )
&& 'Table'[Month] = MAX ( 'Table'[Month] )
&& 'Table'[Type1] = "Svc"
)
)
),
'Table'
)
before:
after:
Did I answer your question? Mark my post as a solution!
Best Regards
Lucien
You could maybe look at an approach like this one https://www.sqlbi.com/blog/alberto/2011/03/01/powerpivot-parent-child-and-unary-operators/ to make the grand total level show the value for Sales - Svc
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 |
---|---|
4 | |
3 | |
1 | |
1 | |
1 |
User | Count |
---|---|
7 | |
5 | |
4 | |
3 | |
3 |