The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hi,
Would anyone help me create a chart to show yearly data from Jan - Dec and another line to show the selected month data. if two months get selected then the line should increase up to correct month selected. Currently, the selected month is shown as a small circle.
Thanks.
Solved! Go to Solution.
Hi @Rajsheisan ,You can refer the following links to get the culmulative values base on the selected months...
Cumulative total based on the selected month
First of all, we can create a spreated calculated table as the slicer,
SlicerTable = DISTINCT('Table'[Month])
Then we can use a measure in visual filter to meet your requirement:
Cumulative Size = CALCULATE(SUM('Table'[Size]), FILTER(ALLSELECTED('Table'),[Month]<=SELECTEDVALUE('Table'[Month])))
Computing running totals in DAX
RT Sales Customer Class :=
VAR CurrentCustomerClass = SELECTEDVALUE ( Customer[Customer Class Number] )
RETURN
CALCULATE (
[Sales Amount],
Customer[Customer Class Number] <= CurrentCustomerClass,
ALL ( Customer[Customer Class] )
)
Cumulative Running Total Based on Highest Value
If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. 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 @Rajsheisan ,You can refer the following links to get the culmulative values base on the selected months...
Cumulative total based on the selected month
First of all, we can create a spreated calculated table as the slicer,
SlicerTable = DISTINCT('Table'[Month])
Then we can use a measure in visual filter to meet your requirement:
Cumulative Size = CALCULATE(SUM('Table'[Size]), FILTER(ALLSELECTED('Table'),[Month]<=SELECTEDVALUE('Table'[Month])))
Computing running totals in DAX
RT Sales Customer Class :=
VAR CurrentCustomerClass = SELECTEDVALUE ( Customer[Customer Class Number] )
RETURN
CALCULATE (
[Sales Amount],
Customer[Customer Class Number] <= CurrentCustomerClass,
ALL ( Customer[Customer Class] )
)
Cumulative Running Total Based on Highest Value
If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. 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
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
12 | |
2 | |
1 | |
1 | |
1 |