Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
Hi everyone,
i have a table that contains Volume data for December and January. As of January 7, there's no more data
The running total measure that i use:
Since there are no future data after January 7 there's no value at all but I would like to have a flat line from day 7 till 22 with the last value.
How can I make it?
Regards and happy 2024!
Solved! Go to Solution.
I couldn't make it work because future dates were not included so the measures didn't know what to do. I solved it by adding a manual table with future dates, appending this new table with my FactTable, adjusting the measures and voila!!!
i guess it's not the best and tidiest way of doing it but it works so far
Hi @v-yiruan-msft and @Ashish_Mathur Ashish
here's the link to the file: https://drive.google.com/file/d/1ynTnYK1FaCR-vPr5h8z6zEBfo_4lyddo/view?usp=drive_link
Thanks for your help!!!!!!!
Access Denied message.
didnt give access to all with the link. sorry
please try again: https://drive.google.com/file/d/1ynTnYK1FaCR-vPr5h8z6zEBfo_4lyddo/view?usp=sharing
Hi,
Make these changes and share the link of the revised PBI file.
Hi @Ashish_Mathur ,
done!! it kind of works but the flat segment on the last days is that the initial value level instead of the last value level. See pbix file
https://drive.google.com/file/d/1bKbBZQ3k1Ql1jgDYztiXmRtxOzROD1F_/view?usp=sharing
thanks again!!!!!
I couldn't make it work because future dates were not included so the measures didn't know what to do. I solved it by adding a manual table with future dates, appending this new table with my FactTable, adjusting the measures and voila!!!
i guess it's not the best and tidiest way of doing it but it works so far
Hi,
Share the download link of the PBI file.
Hi @nicoenz ,
Thanks for reaching out to us with your problem. Base on your description, it seems that you want to get the running total for the future dates. You can follow the steps to get it:
1. Create a separated date dimension table(DO NOT create any relationship with your fact table)
2. Apply the date field of date dimension table on X-axis of your line chart
3. Update the formula of measure [Running total] as below
Running total =
VAR Turro =
CALCULATE (
SUM ( 'Table'[Volume] ),
FILTER (
ALLSELECTED ( 'Table' ),
'Table'[Fiscal year/period] = SELECTEDVALUE ( 'Date'[Date] )
),
FILTER (
ALLSELECTED ( 'Table' ),
'Table'[WorkDayPeriod] <= SELECTEDVALUE ( 'Date'[Date] )
)
)
RETURN
IF (
Turro <> 0,
Turro,
Turro
+ CALCULATE ( SUM ( 'Table'[Volume] ), REMOVEFILTERS ( 'Table'[WorkDayPeriod] ) )
)
If the above one can't help you get the expected result, please provide some raw data in your table (exclude sensitive data) with Text format, your line chart Fields settings and your expected result with special examples and screenshots. It would be helpful to find out the solution. You can refer the following link to share the required info:
How to provide sample data in the Power BI Forum
And It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.
How to upload PBI in Community
Best Regards
Hi Rena, i tried and couldn't make it work. tried tweaking it a bit to no avail.
I will upload the file with some more explanations
thanks!!!!
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
87 | |
87 | |
85 | |
67 | |
49 |
User | Count |
---|---|
135 | |
112 | |
100 | |
66 | |
62 |