Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi everyone,
I'm very new to Power BI so please excuse my lack of ability here.
I am working with sales data (SaleDate, SalesAmount, SalesFTYD), and I have also created a DimDate table (Date, Month, Month_Numeric, Year, Year-Month).
SalesFYTD is a calculated column ( = TOTALYTD(SUMX(SalesData, SalesData[SalesAmount), DimDate[Date], "06/30") ).
I wish to graph my data in a histogram such as the photo attached but so that when I select a particular month as a filter the plot will change to show cumulative financial year totals up until the month I've selected. Eg. If December is selected the plot will show July, August, September, October, November, December... If September is selected the plot will show July, August, September...
At the moment when I select a filter it displays only the selected month, not the previous months within said financial year.
Also, if the plot could be ordered to show July -> June instead of January -> December that would be excellent!
Is this possible? If so, how?
Thanks in advance for all your help!
Nicole 🙂
Solved! Go to Solution.
Hi @Anonymous ,
Please download a demo from the attachment. I think you should use financial year and month instead.
Result = VAR selectedFinancialMonth = IF ( CALCULATE ( SELECTEDVALUE ( DimDate[FinancialMonth] ), ALLEXCEPT ( DimDate, DimDate[FinancialMonth] ) ) <> BLANK (), CALCULATE ( MAX ( DimDate[Date] ), ALLEXCEPT ( DimDate, DimDate[FinancialMonth], DimDate[FianacialYear] ) ), CALCULATE ( MAX ( DimDate[Date] ), ALL ( DimDate ) ) ) RETURN CALCULATE ( IF ( MAX ( DimDate[date] ) > selectedFinancialMonth, BLANK (), TOTALYTD ( SUM ( FactSales[SalesQuantity] ), 'DimDate'[Date], "6-30" ) ), ALL ( DimDate[FinancialMonth] ) )
Best Regards,
Hi @Anonymous ,
Could you please mark the proper answers as solutions?
Best Regards,
Hi @Anonymous ,
Please download a demo from the attachment. I think you should use financial year and month instead.
Result = VAR selectedFinancialMonth = IF ( CALCULATE ( SELECTEDVALUE ( DimDate[FinancialMonth] ), ALLEXCEPT ( DimDate, DimDate[FinancialMonth] ) ) <> BLANK (), CALCULATE ( MAX ( DimDate[Date] ), ALLEXCEPT ( DimDate, DimDate[FinancialMonth], DimDate[FianacialYear] ) ), CALCULATE ( MAX ( DimDate[Date] ), ALL ( DimDate ) ) ) RETURN CALCULATE ( IF ( MAX ( DimDate[date] ) > selectedFinancialMonth, BLANK (), TOTALYTD ( SUM ( FactSales[SalesQuantity] ), 'DimDate'[Date], "6-30" ) ), ALL ( DimDate[FinancialMonth] ) )
Best Regards,
Hi,
See if my solution here helps - Flex a Pivot Table to show data for x months ended a certain user defined month.
Hi Ashish,
Not really what I'm looking for but thanks for trying for me! If anyone else has anything to contribute I'm happy to try it!
Nicole 🙂
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
107 | |
100 | |
80 | |
63 | |
58 |
User | Count |
---|---|
148 | |
111 | |
94 | |
84 | |
67 |