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.
I have data 1 in following format:
Header | value |
A | 1 |
A | 1 |
A | 1 |
A | 1 |
A | 1 |
A | 1 |
A | 1 |
A | 1 |
B | 1 |
B | 1 |
B | 1 |
B | 1 |
B | 1 |
B | 1 |
B | 1 |
B | 1 |
B | 1 |
C | 1 |
C | 1 |
C | 1 |
C | 1 |
C | 1 |
C | 1 |
C | 1 |
C | 1 |
C | 1 |
D | 1 |
D | 1 |
D | 1 |
D | 1 |
D | 1 |
D | 1 |
D | 1 |
D | 1 |
and data 2 in following format
Header | Count |
A | 10 |
B | 20 |
C | 20 |
D | 10 |
I am expecting to create a table visual in power bi which will give me following output
header | data1_value | data2_count | final |
A | 8 | 10 | 0.8 |
B | 9 | 20 | 0.45 |
C | 9 | 20 | 0.8 |
D | 8 | 10 | 0.45 |
Can you help me to write a DAX measure to achieve final column
Hi, @ERAHUMO
@ERAHUMO
try below
make two measure
juast adjust your table and column name
a1= COUNTX('data1','data1'[value])
and
countfinal = DIVIDE([a1],MAX('data2'[Count]))
plot table visual and put column and above measure you get like below
OR
you can make a new table
just adjust your table and column name
Table 3 =
ADDCOLUMNS(ALL('data2'[Header]),
"data1",CALCULATE(COUNT('data1'[value])),
"count",CALCULATE(MAX('data2'[Count])),
"countfinal",
DIVIDE(
CALCULATE(
COUNT('data1'[value])
),
CALCULATE(
MAX('data2'[Count])
)
)
)
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 |
---|---|
26 | |
10 | |
10 | |
9 | |
6 |