This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
Hi everyone
i've this dataset, i need to count the rows per group (Area) and after multiply by column value (Weight). i try this isn't works
Rows per Area = CALCULATE(COUNT(BSC[AREA]),ALLEXCEPT(BSC,BSC[KPI]))
Rows per IT Area = 3, Rows per Financial Area =2.
| Month | Area | KPI | Weight | Rows per Area | Result | FORMULA |
| January | IT | KPI 1 | 0,3 | 3 | 0,9 | (Weight (0,3) * Quantity Kpi Per Area (3) |
| January | IT | KPI 2 | 0,25 | 3 | 0,75 | (Weight (0,75) * Quantity Kpi Per Area (3) |
| January | IT | KPI 3 | 0,48 | 3 | 1,44 | (Weight (0,48) * Quantity Kpi Per Area (3) |
| January | Financial | KPI 4 | 0,1 | 2 | 0,2 | (Weight (0,1) * Quantity Kpi Per Area (2) |
| January | Financial | KPI 5 | 0,85 | 2 | 1,7 | (Weight (0,85) * Quantity Kpi Per Area (2) |
Solved! Go to Solution.
Try below measures:
Measure = CALCULATE(COUNTROWS('Table'),ALLEXCEPT('Table','Table'[Area]))Measure 2 = [Measure]*MAX('Table'[Weight])
Pbix attached.
Hi @charlyrosero ,
Your current formula is the rows per KPI. Change it to
Rows per Area =
CALCULATE ( COUNT ( BSC[AREA] ), ALLEXCEPT ( BSC, BSC[Area] ) )
If you need rows per are per month per kpi, use below formula
Rows per Area =
CALCULATE (
COUNT ( BSC[AREA] ),
ALLEXCEPT ( BSC, BSC[Month], BSC[Area], BSC[KPI] )
)
Try below measures:
Measure = CALCULATE(COUNTROWS('Table'),ALLEXCEPT('Table','Table'[Area]))Measure 2 = [Measure]*MAX('Table'[Weight])
Pbix attached.
I am not sure about the role of formula. But seems like you need subtotal
Measure = CALCULATE(COUNT('Table'[Area]),ALLEXCEPT('Table','Table'[Area],'Table'[Month]))
Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution.
In case it does not help, please provide additional information and mark me with @
Thanks. My Recent Blogs -Decoding Direct Query - Time Intelligence, Winner Coloring on MAP, HR Analytics, Power BI Working with Non-Standard TimeAnd Comparing Data Across Date Ranges
Proud to be a Datanaut Connect on Linkedin
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 28 | |
| 26 | |
| 25 | |
| 20 | |
| 14 |
| User | Count |
|---|---|
| 53 | |
| 45 | |
| 20 | |
| 19 | |
| 18 |