Forum Discussion
Anonymous
6 years agoNot applicable
Create DAX table with % calculation
Hello, I need your support with the next issue please. I have the next 2 tables. I want to create a 3rd table, calculating for every Audit type, the % of the number of companies in column (comp...
- 6 years ago
Hi Anonymous ,
what about the following solution:
Regards FrankAT
Greg_Deckler
Community Champion
6 years agoAnonymous I believe you want something like:
Table C =
ADDCOLUMNS(
ADDCOLUMNS(
SUMMARIZE(
'Table B',
[Audit type],
"Number of companies",COUNTROWS(DISTINCT('Table B'[Company]))
),
"Important company in",COUNTROWS(ALL('Table A'),[Classification]="Important")
),
"%",[Number of companies] / [Important company in]
)Anonymous
6 years agoNot applicable
Hello,
Thanks for the solution it is working (after a small correction in line 8 - missing 'FILTER').
BR.