Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Julier
Helper II
Helper II

power bi measure

Hello,  I am trying to show a comparison of a rcumulative running total over set months by different sites on a line chart, I have created the measure below and it does change the visual when the slicer is used but it does not separate by months and does not add the sales as the days go, i want to be able to see the 2 months side by side with the sales growing for each day for each month, and be able to use a slicer to see how each site is performing, the measure i have below doesnt total the sales as the days go on but just shows what sales where on that particular day and does not show each month, Hope this makes sense, I have had to cut down the data table so that i can post this message

Julier_3-1751005120391.png

 

Julier_1-1751004606081.png

I want to be able to show the data something like below

Julier_2-1751004669683.png

SiteDateDay Number in Calendar MonthVolume (SQM)
Smiths01/05/20252014846
Taylors01/05/20253011153
Smiths01/06/20252422412
Taylors01/06/20251113355
Taylors01/05/20242315495
Taylors01/05/202496728
Taylors01/05/202428764
Taylors01/06/20251818852
Taylors01/05/2025510303
Taylors01/05/202436147
Taylors01/05/202423472
Taylors01/05/2025132991
Taylors01/06/202459223
Smiths01/06/20242813091
Smiths01/06/202524068
Taylors01/05/2024248946
Smiths01/05/2025914725
Taylors01/05/20251888
Smiths01/05/202424934
Taylors01/05/2024240
Smiths01/05/20242035770
Taylors01/05/2024213982
Taylors01/05/202411608
Taylors01/06/2024163388
Taylors01/05/2025273011
Smiths01/06/202412700
Taylors01/05/2025150
Smiths01/06/20242522645
Smiths01/05/20251677919
Taylors01/06/20241034700
Taylors01/05/20242811780
Smiths01/05/20252728793
1 ACCEPTED SOLUTION
v-ssriganesh
Community Support
Community Support

Hello @Julier,
Thank you for reaching out to the Microsoft fabric community forum.

I’ve reviewed your scenario and reproduced it in Power BI Desktop using the sample data and logic you provided. I was able to get the expected output, with the running total accumulating day-by-day within each month, and split by Site and Month-Year. This also works seamlessly with slicers, just as you intended.

The visual now correctly compares multiple months side-by-side and reflects cumulative sales per site over each calendar month.

For your reference, I’ve attached the .pbix file please feel free to explore and adapt it to your dataset.


If this information is helpful, please “Accept as solution” and give a "kudos" to assist other community members in resolving similar issues more efficiently.
Thank you.

View solution in original post

8 REPLIES 8
FBergamaschi
Resolver I
Resolver I

Would something like this work?image 1.pngimage 2.png

Hi, thanks for your reply, unfortuanley this  doesnt sum the sales as the month goes on this just shows what the sales where on each day, what i want to see are the sales growing daily until we see the final sales figure at the end of the month, I also need both years showng without the need for a slicer in the way that this chart does, hope you can help?

Julier_0-1751090535935.png

 

How about my next reply?

 

yesterday

My pbix is here, with adjusted graphs like follows

 

https://drive.google.com/drive/folders/1e5xrhW22elwq9eVzh0H4NaUH0u7xB7iB?usp=sharing

 

FBergamaschi_0-1751101767872.png

 

FBergamaschi_1-1751101767703.png

 

 

If this information is helpful, please “Accept as solution” and give a "kudos".

 

Thanks

Unfortunately this doesnt work as it is not adding the sales together as the month goes on it is showing the daily sales for each day, and i have to use a slicer to show the months, I want to be able to show the overall comparison between the months for all sites eg the cumulative daily sales for May 24 and May 25 on one chart together with no slicer  and then be able to slice into each site for to show the individualy monthly  comparison so if the sales for day 1 are 1 and day 2 are 5 and day 3 are 8 I want the chart to show sales on day 2 as 6 and day 3 as 14 and so on.

Hi, an update on my earlier reply i can see now the running sum works but i cant get it to show both months/years  together at the same without the use of a slicer, as i previoulsy mentioned i need to show the month on month comparison together on the chart

My pbix is here, with adjusted graphs like follows

 

https://drive.google.com/drive/folders/1e5xrhW22elwq9eVzh0H4NaUH0u7xB7iB?usp=sharing

 

image 1.pngimage 2.png

 

If this information is helpful, please “Accept as solution” and give a "kudos".

 

Thanks

v-ssriganesh
Community Support
Community Support

Hello @Julier,
Thank you for reaching out to the Microsoft fabric community forum.

I’ve reviewed your scenario and reproduced it in Power BI Desktop using the sample data and logic you provided. I was able to get the expected output, with the running total accumulating day-by-day within each month, and split by Site and Month-Year. This also works seamlessly with slicers, just as you intended.

The visual now correctly compares multiple months side-by-side and reflects cumulative sales per site over each calendar month.

For your reference, I’ve attached the .pbix file please feel free to explore and adapt it to your dataset.


If this information is helpful, please “Accept as solution” and give a "kudos" to assist other community members in resolving similar issues more efficiently.
Thank you.

FBergamaschi
Resolver I
Resolver I

I can help but what is the meaning on the column day nr in calendar month? In the first row the date is may 1 but then there is a 20 in this other column, does that mean that the date column indicates the month and the day nr column the day in the month?

 

best

FB

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.