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.
Data looks like this:
Column A Column B
asdf no
adsf yes
adsf no
czcz yes
czcz yes
I want to count the "yes" values and i want to add a calculated column (Column C) that looks like this below where the # of yes's for a given value in column A is shown for all of those values if it repeats:
Column A Column C
asdf 1
adsf 1
adsf 1
czcz 2
czcz 2
Thanks in advance...
Solved! Go to Solution.
Please try this column expression, replacing Table with your actual table name.
Yes Count =
CALCULATE (
COUNT ( Table[ColumnA] ),
ALLEXCEPT (
Table,
Table[ColumnA]
),
Table[ColumnB] = "yes"
)
Regards,
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
Hi,
Try his calculated column formula
=CALCULATE(CALCULATE(COUNTROWS(Data),Data[Reply]="yes"),FILTER(Data,Data[Text]=EARLIER(Data[Text])))
Hope this helps.
Hi,
Try his calculated column formula
=CALCULATE(CALCULATE(COUNTROWS(Data),Data[Reply]="yes"),FILTER(Data,Data[Text]=EARLIER(Data[Text])))
Hope this helps.
Please try this column expression, replacing Table with your actual table name.
Yes Count =
CALCULATE (
COUNT ( Table[ColumnA] ),
ALLEXCEPT (
Table,
Table[ColumnA]
),
Table[ColumnB] = "yes"
)
Regards,
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
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 |
---|---|
105 | |
96 | |
75 | |
63 | |
62 |
User | Count |
---|---|
135 | |
105 | |
104 | |
80 | |
65 |