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.
Hi,
I have following chart, in x axis legal id and yaxis application id (count)
but i would like those column values in X axis and Yaxis as distinct count , something like histogram or group by as follows: ist column 20 application having 8 legalid , 2nd column 18 application has 6 legalid and so on.
Thanks!
Solved! Go to Solution.
Hi @mmh ,
According to your description, here are my steps you can follow as a solution.
(1) This is my test data.
(2) We can create a table.
SummarizeTable =
var _a = ADDCOLUMNS('Table',"Count",CALCULATE(COUNT('Table'[ApplicationID]),ALLEXCEPT('Table','Table'[LegalID])))
var _b = SUMMARIZE(_a,[Count],"Num",CALCULATE(DISTINCTCOUNT('Table'[LegalID]),FILTER(_a,[Count]=EARLIER([Count]))))
return _b
(3) Then the result is as follows.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous
One more requirements, in summarized table one more column need to be added as country. legal id and application id need to filter by countries. Could you please help me on this too.
Thanks!
Thanks Neeko.
Hi @mmh ,
According to your description, here are my steps you can follow as a solution.
(1) This is my test data.
(2) We can create a table.
SummarizeTable =
var _a = ADDCOLUMNS('Table',"Count",CALCULATE(COUNT('Table'[ApplicationID]),ALLEXCEPT('Table','Table'[LegalID])))
var _b = SUMMARIZE(_a,[Count],"Num",CALCULATE(DISTINCTCOUNT('Table'[LegalID]),FILTER(_a,[Count]=EARLIER([Count]))))
return _b
(3) Then the result is as follows.
Best Regards,
Neeko Tang
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 |
---|---|
10 | |
9 | |
9 | |
8 | |
8 |
User | Count |
---|---|
14 | |
12 | |
11 | |
11 | |
8 |