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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Sri_phani
Helper III
Helper III

Last 4 months based on Slicer

Hi, I a dataset which has 16 metrics which is segregated Month on month. My intention is to show the metric score for month selected along that below the score show the score for last 4 month excluding month shown in card. 

 

Example: September CSAT score is 51.90%, below that graph should show scores for May, June, July, August. 

Sri_phani_0-1697126153660.png

I have tried this : Solved: Filter 3 months based on slicer selection - Microsoft Fabric Community. But the problem here is I don't have external tools access (Tabular editor) due to organization policies. So, how to do it? 

 

Is there a way to write single DAX, instead of write one function for each metrics? 

 

Thanks in advance. 

2 REPLIES 2
Sri_phani
Helper III
Helper III

Hi Greg, 

 

Here is the complete information as you requested. 

Sample data: 

Start of MonthSITEAHT INBOUND CONTACTSAHT CHATAHT CRMFIRST CONTACT RESOLUTIONCSAT
1/1/2023India647 Sec884 Sec504 Sec75.50%59.70%
1/1/2023Mexico577 Sec808 Sec479 Sec72.90%56.40%
1/1/2023Egypt446 Sec683 Sec475 Sec76.70%68.40%
1/1/2023Lima629 Sec879 Sec417 Sec75.90%76.50%
2/1/2023India700 Sec900 Sec600 Sec76.50%60.70%
2/1/2023Mexico800 Sec900 Sec700 Sec 57.40%
2/1/2023Egypt500 Sec1000 Sec500 Sec73.90%69.40%
2/1/2023Lima600 Sec1100 Sec900 Sec77.70%77.50%

 

Expected Output: 

Based on selected filters(Month & Site), the card will show the metric score, example: if I select Mexico and Month as April, card will show the April score. But I also want viewers to see the trend (graph below the card value).  This is where I am having issues. graph should show dynamic last 4 months based on month selected. if December is selcted, for the same year "November, October, September, August" values.

Sri_phani_0-1697127728042.png

 

From community forum: Solved: Filter 3 months based on slicer selection - Microsoft Fabric Community

I found help but here I need Tabular editor if I want to group the measures. But I don't have access to Tabular editor. How to get the output, do I have to write individual measures now for all the metrics I have? 

 

Greg_Deckler
Community Champion
Community Champion

@Sri_phani Sorry, having trouble following, can you post sample data as text and expected output?
Not really enough information to go on, please first check if your issue is a common issue listed here: https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882

Also, please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

The most important parts are:
1. Sample data as text, use the table tool in the editing bar
2. Expected output from sample data
3. Explanation in words of how to get from 1. to 2.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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