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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
ncbshiva
Advocate V
Advocate V

Ignore the Month filter for one visual

Hi Team,

 

I have Year and Month filters  in my report from Date Dimension. And i have simple table chart showing "Compare From" and "Compare To" measures along the month.

Relationship is setup between my Fact table and date dimension with many to 1 relationship.

Consider the below as my sample data.

MonthCompare FromCompare To
January274774647
February626394737
March565651553
April343498589
May45566663
June56712772
July 8874
August 8373
September 8781
October 435
November 827
December 7363

 

For Example : If i select Month as "May" and Year as "2019" then my table should show me below output.

My "Compare From" measure should show me the data until the selected month that is from Jan 2019 until May 2019. And my "Compare To" measure should show me the data for all the months in Year 2019 and it should ignore the Month filter applied.

 

MonthCompare FromCompare To
January274774647
February626394737
March565651553
April343498589
May45566663
June 12772
July 8874
August 8373
September 8781
October 435
November 827
December 7363

 

Please attach the PBIX file also.

 

Regards

SHIVA

 

 

 

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

Hi @ncbshiva ,

 

One sample for your reference. Please check the following steps as below.

 

1. Insert an index column in power query.

222.PNG

2. To create a calculated table as below.

 

Table = SELECTCOLUMNS(Table1,"month",'Table1'[Month],"Monthno",Table1[Index])

3. Then we can achieve our goal by this measure.

new compare from = 
VAR mon =
    SELECTEDVALUE ( 'Table'[Monthno] )
RETURN
    CALCULATE (
        SUM ( Table1[Compare From] ),
        FILTER ( 'Table1', Table1[Index] <= mon )
    )

Capture.PNG

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

View solution in original post

1 REPLY 1
v-frfei-msft
Community Support
Community Support

Hi @ncbshiva ,

 

One sample for your reference. Please check the following steps as below.

 

1. Insert an index column in power query.

222.PNG

2. To create a calculated table as below.

 

Table = SELECTCOLUMNS(Table1,"month",'Table1'[Month],"Monthno",Table1[Index])

3. Then we can achieve our goal by this measure.

new compare from = 
VAR mon =
    SELECTEDVALUE ( 'Table'[Monthno] )
RETURN
    CALCULATE (
        SUM ( Table1[Compare From] ),
        FILTER ( 'Table1', Table1[Index] <= mon )
    )

Capture.PNG

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.