Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
I now have a line chart that shows what percentage of the orders have been achieved in a period based on requirements (for example, in the month of May there are 50 orders, of which 47% has been achieved). This line chart then shows the 47%.
However, I want to create a line chart that displays the percentage in the same way, but the percentage must also take into account orders from previous months. So up to and including April, for example, there have been 1000 orders and 67% of these have been fulfilled. In May, the above-mentioned 50 orders will be added, so that, for example, 65% of the 1050 have been achieved. The 65% must then be displayed in the line chart because it counts the previous months.
The line chart must be so flexible that I can make a choice between month level, year level, week level and day level.
Solved! Go to Solution.
Hi @Anonymous ,
I suggest you to create a related date table to create the slicer and then create measures to calculate the result you want.
My Sample:
Date =
ADDCOLUMNS (
CALENDAR ( MIN ( 'Table'[Date] ), MAX ( 'Table'[Date] ) ),
"Year", YEAR ( [Date] ),
"Month", MONTH ( [Date] ),
"MonthName", FORMAT ( [Date], "MMMM" ),
"Weeknum", WEEKNUM ( [Date] ),
"Day", DAY ( [Date] )
)
Relationship:
Measure:
Basic Percentage =
DIVIDE ( SUM ( 'Table'[Completed Qtr] ), SUM ( 'Table'[Qtr] ) )Rolling Percentage =
CALCULATE (
[Basic Percentage],
FILTER ( ALLSELECTED ( 'Date' ), 'Date'[Date] <= MAX ( 'Date'[Date] ) )
)
Result is as below.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
I suggest you to create a related date table to create the slicer and then create measures to calculate the result you want.
My Sample:
Date =
ADDCOLUMNS (
CALENDAR ( MIN ( 'Table'[Date] ), MAX ( 'Table'[Date] ) ),
"Year", YEAR ( [Date] ),
"Month", MONTH ( [Date] ),
"MonthName", FORMAT ( [Date], "MMMM" ),
"Weeknum", WEEKNUM ( [Date] ),
"Day", DAY ( [Date] )
)
Relationship:
Measure:
Basic Percentage =
DIVIDE ( SUM ( 'Table'[Completed Qtr] ), SUM ( 'Table'[Qtr] ) )Rolling Percentage =
CALCULATE (
[Basic Percentage],
FILTER ( ALLSELECTED ( 'Date' ), 'Date'[Date] <= MAX ( 'Date'[Date] ) )
)
Result is as below.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
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 |
|---|---|
| 53 | |
| 37 | |
| 35 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 74 | |
| 69 | |
| 39 | |
| 35 | |
| 23 |