Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hi guys
I have this measure that shows me the cumulative values.
Solved! Go to Solution.
oh... classic running total 🙂 why didn't you say so in the first place haha
just switch the allselected with all 🙂
just modify
@pedroccamaraDBI
Add a column to your Date table like:
"Past/Today/Future" =
SWITCH(
TRUE(),
'Date'[Date] < TODAY(), "Past",
'Date'[Date] = TODAY(), "Today",
"Future"
)
Then add this column to your report/page/visual filter pane (depnding on what you want it to influence) and choose there just "Past" and "Today".
This will show you values up to today in 2022 and will not affect the previous years of course
@tamerj1 in what you shown it will work for 2022 but not for the previous years, where it will always show the data until the last date of the year regardless the last date in the visual
Hello @SpartaBI
Thanks for your answer. I did a similar suggested thing. I add a column to my date tabe like this one :
Wait, that wasn't clear in your first post :))
You want for each year to see the cumulative value from the beginning of the previous year?
So, let's say in March 2021 you want to see the sum of Jan 2020 - March 2021 and not Jan 2021 - March 2021?
Yes @SpartaBI but not only from previous year but all previsous years, cose i know there's data from 2003. If i select 2021 I should see all years before and the same if i select 2022 and so on
oh... classic running total 🙂 why didn't you say so in the first place haha
just switch the allselected with all 🙂
I'm so sorry, @SpartaBI cose sometimes we write with our head and not with our fingers 😀 (or is it the other way around?)
One last question:
Now it's showing, i believe, the proper values....but only the cumulative for this year which is selected. Shouldn't it show also all months from year before?
The months shown in the Axis (Rows/Columns/Bars etc) are determined by your filter selection in the Slicer or anything else that affect the visual.
Their actual values are determined by the measure we are writing so we are actually changing the filter context for the result iteself but the months for which this will shown are still subject to the filters outside the visual. If you will remove the filter from the slicer you will see all the years and the of course the right value of the measure for each point
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 7 | |
| 6 | |
| 3 | |
| 2 | |
| 2 |
| User | Count |
|---|---|
| 21 | |
| 12 | |
| 9 | |
| 5 | |
| 5 |