Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hi,
I'm looking for Dax that show me the Total Count
if (FirstDayofMonth = FirstDayofMonth and AreaID = AreaID and CityCode = CityCode and HoodID = HoodID).
My name of this table is: NadRe
FirstDayofMonth | CustID | AreaID | CityCode | HoodID | Count |
1/1/21 | 11111 | 1 | 200 | 100 | 10 |
1/1/21 | 22222 | 1 | 200 | 100 | 20 |
1/1/21 | 33333 | 1 | 200 | 100 | 30 |
1/1/21 | 77777 | 2 | 400 | 10 | 100 |
1/1/21 | 66666 | 2 | 400 | 10 | 200 |
2/1/21 | 11111 | 1 | 200 | 100 | 1000 |
2/1/21 | 22222 | 1 | 200 | 100 | 2000 |
2/1/21 | 33333 | 1 | 200 | 100 | 3000 |
2/1/21 | 77777 | 2 | 400 | 10 | 10,000 |
2/1/21 | 66666 | 2 | 400 | 10 | 20,000 |
This is the result:
FirstDayofMonth | HoodID | Count |
1/1/21 | 100 | 60 |
1/1/21 | 10 | 300 |
2/1/21 | 100 | 6,000 |
2/1/21 | 10 | 30,000 |
Thanks All !
Solved! Go to Solution.
@dolevh you can simply use this measure
Measure =
CALCULATE (
SUM ( 'Table'[Count] ),
ALLEXCEPT ( 'Table', 'Table'[FirstDayofMonth], 'Table'[HoodID] )
)
Hi,
Please check the below picture and the attached pbix file.
It is for creating a new table, and it uses SUMMARIZECOLUMNS function.
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Schedule a short Teams meeting to discuss your question
@dolevh you can simply use this measure
Measure =
CALCULATE (
SUM ( 'Table'[Count] ),
ALLEXCEPT ( 'Table', 'Table'[FirstDayofMonth], 'Table'[HoodID] )
)
Hi,
This shoudl do what you want:
I hope this helps and if it does consider accepting this as a solution!
Proud to be a Super User!
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
16 | |
13 | |
12 | |
11 | |
11 |
User | Count |
---|---|
19 | |
14 | |
14 | |
11 | |
9 |