Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi,
I am trying to calculate % using the filter function
it is just count(Opened)/sentable[sentCount]
I have already calculated an OpenTotal measure, but I cannot this is on the % calculation, it is not showing up.
OpenTotal = CALCULATE(
count(ActivityTable[leadId] ),
FILTER( ActivityTable, ActivityTable[activity] = "opened") )
Solved! Go to Solution.
Hi @Anonymous
Maybe you put the closing bracket incorrectly,and you could modify your measure by the following formula:
OpenTotalRate1 =
DIVIDE (
CALCULATE (
COUNT ( 'ActivityTable'[Product] ),
FILTER ( ALL ( 'ActivityTable' ), 'ActivityTable'[activity] = "opened" )
),
'sentable'[sentCount]
)
Or
OpenTotalRate2 =
COUNTX (
FILTER ( ALL ( 'ActivityTable' ), 'ActivityTable'[activity] = "opened" ),
'ActivityTable'[leadId]
) / 'sentable'[sentCount]
In addition, If sentable[sentCount] is a column (only one counted number),you could change 'sentable'[sentCount] to VALUES('sentable'[sentCount])
The final output is shown below:
Best Regards,
Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous
Maybe you put the closing bracket incorrectly,and you could modify your measure by the following formula:
OpenTotalRate1 =
DIVIDE (
CALCULATE (
COUNT ( 'ActivityTable'[Product] ),
FILTER ( ALL ( 'ActivityTable' ), 'ActivityTable'[activity] = "opened" )
),
'sentable'[sentCount]
)
Or
OpenTotalRate2 =
COUNTX (
FILTER ( ALL ( 'ActivityTable' ), 'ActivityTable'[activity] = "opened" ),
'ActivityTable'[leadId]
) / 'sentable'[sentCount]
In addition, If sentable[sentCount] is a column (only one counted number),you could change 'sentable'[sentCount] to VALUES('sentable'[sentCount])
The final output is shown below:
Best Regards,
Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi,
This measure can be simplified to
OpenTotal = CALCULATE(count(ActivityTable[leadId]),ActivityTable[activity] = "opened")
Not sure of what the SentTable is
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
100 | |
80 | |
64 | |
58 |
User | Count |
---|---|
148 | |
111 | |
94 | |
84 | |
67 |