March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
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!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
125 | |
81 | |
63 | |
54 | |
42 |
User | Count |
---|---|
194 | |
106 | |
90 | |
63 | |
51 |