Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello!
I have a table of names on a product level
I need to populate this table. How do I put in dax the % TO TOTAL DISTINCT PER GRP 1?
Note: Names per GRP1 aren't unique. ex: Ruth and Jolo ordered both appetizer and mains but should only be counted as 2 for the denominator.
Thanks!
Solved! Go to Solution.
hi @JLMJ
not sure if i fully get you.
you may try to plot a table visual with necessary columns and two measures like:
#Names = DISTINCTCOUNT(data[name])
%PerGRP1 =
VAR GrpCount =
CALCULATE(
[#Names],
data[GRP1] = MAX(data[GRP1]),
ALL(data)
)
VAR Result = DIVIDE([#Names], GrpCount)
RETURN Result
it worked like:
hi @JLMJ
not sure if i fully get you.
you may try to plot a table visual with necessary columns and two measures like:
#Names = DISTINCTCOUNT(data[name])
%PerGRP1 =
VAR GrpCount =
CALCULATE(
[#Names],
data[GRP1] = MAX(data[GRP1]),
ALL(data)
)
VAR Result = DIVIDE([#Names], GrpCount)
RETURN Result
it worked like:
Hey it worked! Thanks a lot!
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
20 | |
7 | |
6 | |
5 | |
5 |
User | Count |
---|---|
26 | |
10 | |
10 | |
9 | |
6 |