Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
Hi,
I am creating a report using data from two tables. one dimension and one fact table. I have Start date and End date from dimension table and No of persons from fact table joined using a key.
Now in the output report i need the aggregate sum of the No of persons from fact table based on key (from fact & dim) between the start date and end date from the dimension table.
Please refer the screen shots below for the reference. Please help me to calculate the aggregate sum of No of persons between the start date and end date.
Solved! Go to Solution.
Hi @shalujoyce ,
Pbix as attached.
Hi @shalujoyce ,
Pbix as attached.
@shalujoyce create relationshion between these two tables on key, create a table visual, drop all columns from dim table, make sure there is no aggregation used for any of the column, drop number of person fro fact table in same table visual and changes its aggregation to sum (which is going to be sum by default), you will have your output.
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.
Thank you for the response.
I have tried this approach but not getting the aggregate sum. getting only the first data of the corresponding key from fact table, even though selected sum for the No of persons from fact table.
ie , for key 1 ,no of persons=3 instead of 13
for key 2 , 2 instead of 8
for key 3 , 2 instead of 17
please advise.
@shalujoyce make sure data type of your no of person column is number, it is not text.
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.
@shalujoyce or share pbix file if it doesn't contain sensitive data, you can share using onedrive/google drive.
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.
User | Count |
---|---|
77 | |
74 | |
63 | |
61 | |
45 |
User | Count |
---|---|
108 | |
102 | |
93 | |
83 | |
64 |