Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi all,
I have produced this table below to help describe what I need help with. But I need to aggregate this data so when I look for the month of November 2019 for the type 201, I need the value of 1.8 (1+0.8 = 1.8 and using "Card" in dashboard) but instead I get the figure of 2.6 (1+0.8+0.8), how do I aggregate when the ID is the same but it's the value I need by the type.
I also need to look at past dates values too, so for Sep - 19 for 201 type the value should be1.5.
ID | Value | Amount | Type | Dates |
123 | 1 | 4 | 201 | Aug-19 |
123 | 1 | 5 | 201 | Sep-19 |
123 | 1 | 6 | 205 | Sep19 |
123 | 1 | 7 | 201 | Oct-19 |
123 | 0.8 | 8 | 201 | Nov-19 |
123 | 0.8 | 2 | 201 | Nov-19 |
124 | 0.5 | 4 | 201 | Aug-19 |
124 | 0.5 | 6 | 201 | Sep-19 |
124 | 1 | 2 | 205 | Sep-19 |
124 | 1 | 5 | 201 | Oct-19 |
124 | 1 | 3 | 201 | Nov-19 |
Any suggestions would be very helpful.
Solved! Go to Solution.
@Anonymous ,
Create a measure using dax below:
Result = CALCULATE(SUMX(DISTINCT('Table'[Value]), 'Table'[Value]), ALLSELECTED('Table'))
You can also refer to the pbix file.
Community Support Team _ Jimmy Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous ,
Create a measure using dax below:
Result = CALCULATE(SUMX(DISTINCT('Table'[Value]), 'Table'[Value]), ALLSELECTED('Table'))
You can also refer to the pbix file.
Community Support Team _ Jimmy Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, thank you for replying but unfortunately this didn't work for me and gave me a smaller number then it shoud be.
I need it unique to the individual and sum their value for the month selected.
@Anonymous can you put data in sample excel file and explain what you want. It is not sure which solution you tried and what is not working, you have to provide more details for further help.
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
@Anonymous try this measure
Measure =
SUMX (
SUMMARIZE ( 'Table', 'Table'[Type], 'Table'[Value] ),
CALCULATE( MAX('Table'[Value] ) )
)
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
113 | |
97 | |
79 | |
73 | |
56 |
User | Count |
---|---|
145 | |
105 | |
104 | |
90 | |
63 |