Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Sign up nowGet Fabric certified for FREE! Don't miss your chance! Learn more
Hi everyone,
I has a table below:
To calculate percent like table below:
Normally I will create many Measure for each "Source" like below:
%Internet/Website = DIDIVE(Calculate(Count('Table'[id]), 'Table'[Source] = "Internet/Website"), Count('Table'[id]),0)
%Friend = DIDIVE(Calculate(Count('Table'[id]), 'Table'[Source] = "Friend"), Count('Table'[id]),0)
........
If i have 10 Sources --> need create 10 measures to calculate percent for each. So, have any solution for create only 1 measure to calculate percent for each "Source" ?
Thank you for reading.
Solved! Go to Solution.
@Anonymous , Try a measure like
Divide(Count('Table'[id]),Calculate(Count('Table'[id]), allselected()),0 )
@Anonymous , in that case try like
Divide(Count('Table'[id]),Calculate(Count('Table'[id]), allselected(Table[Sources])),0 )
or
Divide(Count('Table'[id]),Calculate(Count('Table'[id]), removefilter(Table[Sources])),0 )
or
Divide(Count('Table'[id]),Calculate(Count('Table'[id]), filter(allselected(Table),Table[Date] =max(Table[Date]) )) ,0 )
@amitchandak It work, but I have one more question.
When I applied it with a column group by Date, the results like below pictures:
With column: No.50.....
Total in this column is 23, marketing campaign = 7 --> % should be 7/23 *100. But now, It will divide to total is 97.
Any solution for this case sir?
@Anonymous , in that case try like
Divide(Count('Table'[id]),Calculate(Count('Table'[id]), allselected(Table[Sources])),0 )
or
Divide(Count('Table'[id]),Calculate(Count('Table'[id]), removefilter(Table[Sources])),0 )
or
Divide(Count('Table'[id]),Calculate(Count('Table'[id]), filter(allselected(Table),Table[Date] =max(Table[Date]) )) ,0 )
Thank you sir. I got it
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 64 | |
| 63 | |
| 49 | |
| 21 | |
| 18 |
| User | Count |
|---|---|
| 122 | |
| 118 | |
| 38 | |
| 36 | |
| 29 |