Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
I have a a measure that calculates the number of rows for a specific content:
CID | CONTENT |
111 | ABC |
222 | ABC |
333 | ABC |
111 | DEF |
CONTENT | BENCHMARK |
ABC | 4 |
DEF | 3 |
I would like to put both values in a visual table and use them both to calculate if the benchmark has been reached (and possibly showing a up or down arrow).
CONTENT | CountC | BENCHMARK | % |
ABC | 3 | 4 | -25% |
DEF | 1 | 3 | -66% |
The problem is that I don't know how to get a measure and a column to interact.
Is there a way to do that?
Many thanks in advance
Solved! Go to Solution.
Hi @df123445 ,
I created the following measure. Please check.
Benchmark% = var _sum=SUM('Benchmark'[Benchmark])
return DIVIDE([CountC]-_sum,_sum)
The same relationship setup as you.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
hi @df123445
Are u looking for total sum of benchmark?
Hi @df123445
Can you share the screenshot??
sure, the data is a bit more complex than I said:
- table open has a measure that counts the number of customer_ids for each content_name
- table list is connected to Benchmarks via Linea
OPEN:
Customer id | Content |
123 | CONTENT1 |
456 | CONTENT1 |
789 | CONTENT1 |
123 | CONTENT2 |
List
CONTENT | LINEA |
CONTENT1 | Linea1 |
CONTENT2 | Linea1 |
CONTENT3 | Linea2 |
Benchmarks
LINEA | Benchmark |
Linea1 | 5 |
Linea2 | 2 |
I hope it makes sense.
I woud like to show for each linea a table with a list of content and a sum of customers that opened it, next to it I would like to show the benchmark.
Many thanks again
Hi @df123445 ,
I created the following measure. Please check.
Benchmark% = var _sum=SUM('Benchmark'[Benchmark])
return DIVIDE([CountC]-_sum,_sum)
The same relationship setup as you.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @df123445
Please follow the steps:
Create relationship between 2 tables
then create measure under CID table
Count_content= Count('Table'[Content])
Take table and add all the values you want in the table
Create measure for your % field
%Benchmark= Count/ sum(Benchmark)-1
If my post helps you then give kudos and accept it as a solution!
Thanks
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
User | Count |
---|---|
121 | |
76 | |
71 | |
56 | |
47 |
User | Count |
---|---|
164 | |
84 | |
68 | |
67 | |
60 |