Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by watching the DP-600 session on-demand now through April 28th.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
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 April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 43 | |
| 38 | |
| 35 | |
| 21 | |
| 15 |
| User | Count |
|---|---|
| 65 | |
| 58 | |
| 28 | |
| 27 | |
| 25 |