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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
NILU090
Helper I
Helper I

Metrix expand and collaps

I have used Metrix in power bi. Input shows that metrix here.

When i collaps month should show output. Output will be based on latest date of that month's value ( as you can see highlited in green).

and when i expand the month, should show input there.

 

NILU090_0-1682068195690.png

 

2 REPLIES 2
amitchandak
Super User
Super User

@NILU090 , Assume value is a measure

 

 

Switch(true(),

isinscope(Date[Date]), [Value] ,

isinscope(Date[Month Year]),calculate([Value], lastdate(Date[Date]))

)

v-xinruzhu-msft
Community Support
Community Support

Hi @NILU090 

You can refer to the following measure

Sample data

vxinruzhumsft_0-1682303234181.png

 

 

Measure = IF(ISINSCOPE('Table'[Month]),SUM('Table'[Value]),CALCULATE(SUM('Table'[Value]),'Table'[Month]=MAX('Table'[Month])))

 

 

 Output

vxinruzhumsft_1-1682303252327.png

Best Regards!

Yolo Zhu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.