Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Anonymous
Not applicable

data change

hiii i have attached my pbix file as well plz help me https://drive.google.com/file/d/1wVM3_KYrTkW_goL_G6KpvECMt4mpG0Lp/view?usp=sharing

i have a slicer in my report with month nos

wht it should do is if i click on the a month like march my matrix and other 2 bar graphs should display march month sla% data and 

i aslo have a line graph which should return sla % of past 2 months and current month data i.e jan feb and march

previously i used to use this formula for 3 month graph

greeshma_0-1602935752093.png

i used to use this formula for 1 month graph

greeshma_1-1602935824712.png

 

1 ACCEPTED SOLUTION
v-kelly-msft
Community Support
Community Support

Hi @Anonymous ,

 

Try measures as below:

Measure = IF(SELECTEDVALUE('Date'[Month Number])>=3,
CALCULATE(COUNT('Query2'[Call Closed]),FILTER(ALL(Query2),MONTH(MAX('Query2'[Call Closed]))<=SELECTEDVALUE('Date'[Month Number])
 &&MONTH(MAX('Query2'[Call Closed]))>=SELECTEDVALUE('Date'[Month Number])-2&&YEAR('Query2'[Call Closed])=SELECTEDVALUE('Date'[Year]))),
 CALCULATE(COUNT('Query2'[Call Closed]),FILTER(ALL(Query2),(MONTH(MAX('Query2'[Call Closed]))<=SELECTEDVALUE('Date'[Month Number])
 &&YEAR('Query2'[Call Closed])=SELECTEDVALUE('Date'[Year]))
 ||(MONTH(MAX('Query2'[Call Closed]))>=12+SELECTEDVALUE('Date'[Month Number])-2&&YEAR('Query2'[Call Closed])=SELECTEDVALUE('Date'[Year])-1))))
MIT_SLA% Month = CALCULATE('Query2'[M SLA%],
FILTER(ALL(Query2),
MONTH(MAX('Query2'[Call Closed]))=SELECTEDVALUE('Date'[Month Number])))

 


Best Regards,
Kelly

Did I answer your question? Mark my post as a solution!

View solution in original post

2 REPLIES 2
v-kelly-msft
Community Support
Community Support

Hi @Anonymous ,

 

Try measures as below:

Measure = IF(SELECTEDVALUE('Date'[Month Number])>=3,
CALCULATE(COUNT('Query2'[Call Closed]),FILTER(ALL(Query2),MONTH(MAX('Query2'[Call Closed]))<=SELECTEDVALUE('Date'[Month Number])
 &&MONTH(MAX('Query2'[Call Closed]))>=SELECTEDVALUE('Date'[Month Number])-2&&YEAR('Query2'[Call Closed])=SELECTEDVALUE('Date'[Year]))),
 CALCULATE(COUNT('Query2'[Call Closed]),FILTER(ALL(Query2),(MONTH(MAX('Query2'[Call Closed]))<=SELECTEDVALUE('Date'[Month Number])
 &&YEAR('Query2'[Call Closed])=SELECTEDVALUE('Date'[Year]))
 ||(MONTH(MAX('Query2'[Call Closed]))>=12+SELECTEDVALUE('Date'[Month Number])-2&&YEAR('Query2'[Call Closed])=SELECTEDVALUE('Date'[Year])-1))))
MIT_SLA% Month = CALCULATE('Query2'[M SLA%],
FILTER(ALL(Query2),
MONTH(MAX('Query2'[Call Closed]))=SELECTEDVALUE('Date'[Month Number])))

 


Best Regards,
Kelly

Did I answer your question? Mark my post as a solution!

Anonymous
Not applicable

Can someone plz help me with the query I tried in multiple ways but couldn't get the query right for my data it throws an error.

I have attached my pbix file as well plz help me with the query

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.