The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
var a=MAX(Calendar[Date]) var preious_dates=DATESINPERIOD(Calendar2[Date],a,-12,MONTH) var Ours=CALCULATE(SUM(Market_Share_Brands[value]),Market_Share_Brands[manufacturer]="Ours",Market_Share_Brands[channels]="D - Commerce",REMOVEFILTERS('Calendar'), KEEPFILTERS(preious_dates),USERELATIONSHIP('Calendar'[Date],Calendar2[Date])) var Others=CALCULATE(SUM(Market_Share_Brands[Value]),Market_Share_Brands[Manufacturer]<>"Ours",Market_Share_Brands[Channels]="D - Commerce",REMOVEFILTERS('Calendar'), KEEPFILTERS(preious_dates),USERELATIONSHIP('Calendar'[Date],Calendar2[Date])) return DIVIDE(Ours,(Others+Ours))
So this thing is working fine if I want to show particular month's MAT value, but if I need to show trended chart for last 12 months then it filters out the month that is being selected and not the last 12 months. What should I do to get last 12 month's MAT numbers in trended chart?
Please provide sample data that covers your issue or question completely.
https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-...
Please show the expected outcome based on the sample data you provided.
https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523
User | Count |
---|---|
11 | |
9 | |
6 | |
6 | |
5 |
User | Count |
---|---|
22 | |
14 | |
14 | |
9 | |
7 |