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

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.

Reply
prettyboyboga
Frequent Visitor

Do you want challenge? This will make you cry!

Once again I am trapped with no ideas, so here is my problem: I have the Tachometer and Timeline Visual downloaded from PowerBi and wanted to do a measure on the graph but here is the catch, I only want to calculate the latest month that the graph will be showing based on what is selected in the Timeline. Example in the Graph, the latest month is showing Jan 2018, but the Tachometer named Rating is calculating all of the Months in the Graph and i only want to calculate what will be the latest month that will be showing. I have the current measure showing as well in the picture. 

 

Is my idea doable in PowerBi? thank you so much!

 Tachometer Problem.png

 

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

HI @prettyboyboga,

 

Do you mean break filter effect on tachometer from timeline slicer and only calculate with last month?
If this is a case, you can try to break interaction from timeline slicer and add specific filters in your measures.(last month date range)

 

For example:

Current = 
VAR _lastdate =
    MAXX ( ALL ( 'Table' ), [Date] )
RETURN
    CALCULATE (
        SUM ( 'Table'[Amount] ),
        FILTER (
            ALL ( 'Table' ),
            YEAR ( 'Table'[Date] ) = YEAR ( _lastdate )
                && MONTH ( 'Table'[Date] ) = MONTH ( _lastdate )
        )
    )

14.PNG

 

If above not help, please share some sample data for analysis.

 

Regards,
Xiaoxin Sheng

 

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

1 REPLY 1
v-shex-msft
Community Support
Community Support

HI @prettyboyboga,

 

Do you mean break filter effect on tachometer from timeline slicer and only calculate with last month?
If this is a case, you can try to break interaction from timeline slicer and add specific filters in your measures.(last month date range)

 

For example:

Current = 
VAR _lastdate =
    MAXX ( ALL ( 'Table' ), [Date] )
RETURN
    CALCULATE (
        SUM ( 'Table'[Amount] ),
        FILTER (
            ALL ( 'Table' ),
            YEAR ( 'Table'[Date] ) = YEAR ( _lastdate )
                && MONTH ( 'Table'[Date] ) = MONTH ( _lastdate )
        )
    )

14.PNG

 

If above not help, please share some sample data for analysis.

 

Regards,
Xiaoxin Sheng

 

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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