This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
Hi, I have a raw data set where there are multiple lines for each Project ID and Country.
I then grouped this data by Project ID & Country (Market), and aggregated all NTSLC$ values. This is my "Proj Aggregation Test" table in powerBI.
However, when I create a table in PowerBI, and put the financials, it is giving me the TOTAL value instead of the sum of each line item (eg. first row should be the total financials of the 2 projects in that bin)
How do I write a DAX to sum only the rows???
Solved! Go to Solution.
NTSLC SUMS =
VAR selectedRangeMin = SELECTEDVALUE('Proj Value Rank'[MinValue Range])
VAR selectedRangeMax = SELECTEDVALUE('Proj Value Rank'[MaxValue Range])
IF (
HASONEVALUE ( 'Proj Value Rank'[MinValue Range] ),
CALCULATE (
SUM ( 'Proj Aggregation Test'[Sum NTSLC] ),
FILTER('Proj Aggregation Test',
'Proj Aggregation Test'[Sum NTSLC] => selectedRangeMin &&
'Proj Aggregation Test'[Sum NTSLC] < selectedRangeMax
)
)
)
NTSLC SUMS =
VAR selectedRangeMin = SELECTEDVALUE('Proj Value Rank'[MinValue Range])
VAR selectedRangeMax = SELECTEDVALUE('Proj Value Rank'[MaxValue Range])
IF (
HASONEVALUE ( 'Proj Value Rank'[MinValue Range] ),
CALCULATE (
SUM ( 'Proj Aggregation Test'[Sum NTSLC] ),
FILTER('Proj Aggregation Test',
'Proj Aggregation Test'[Sum NTSLC] => selectedRangeMin &&
'Proj Aggregation Test'[Sum NTSLC] < selectedRangeMax
)
)
)
Where is the Value Range Column and how is it connected to your data?
Hi @lukiz84 ,
My Value Range column is from a separate table called "Proj Value Rank" (not connected to any tables):
I used this message to group projects into bins using this link:
https://www.burningsuit.co.uk/blog/dax-how-group-measures-numeric-ranges
This is my DAX measure based on the above link:
Check out the April 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 |
|---|---|
| 4 | |
| 4 | |
| 3 | |
| 3 | |
| 3 |