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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
kumsha1
Post Patron
Post Patron

Measure values based on DATE flag (slicer selection)

Hi,

 

I have created below calculated measures that will calculate values for current and previous days based on slicer Date selection. Is it possible to change the matrix table to below required format OR create a Date flag for Current, Previous 24 hrs to use with the measure to change the values dynamically. Thanks in advance !.

Current Format:

kumsha1_1-1606191118881.png

 

Required Format:

kumsha1_0-1606191095704.png

 

6 REPLIES 6
Anonymous
Not applicable

Hi @kumsha1 ,

Can you kindly provide me your sample data model or sample data? It couldn't be better if you offer me your formula of calculated measures.

Best Regards,

Yuna

Hi @Anonymous , how can i share sample .pbix file with you?

Anonymous
Not applicable

Hi @kumsha1 ,

Please share me with your pbix file from your Onedrive for Business. (just post a link as a reply)

Best Regards,
Yuna 

 

Anonymous
Not applicable

Hi @kumsha1 ,

 

Based on your description, you can do some steps as follows.

  1. Spilt the first column.

v-yuaj-msft_0-1606293745544.png

 

v-yuaj-msft_1-1606293745546.png

 

  1. Create a table.

 

Table =

ADDCOLUMNS(

    SUMMARIZE(table2,[attribute.1]),

    "Prev", MAXX(FILTER(ALL(table2),[attribute.2]<>BLANK()&&[attribute.1]=EARLIER('table2'[attribute.1])),[percentage]),

    "Current",MAXX(FILTER(ALL(table2),[attribute.2]=BLANK()&&[attribute.1]=EARLIER('table2'[attribute.1])),[percentage])

)

 

Result:

v-yuaj-msft_2-1606293745547.png

 

Hope that's what you were looking for.

Best Regards,

Yuna

 

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

Hi @Anonymous , thanks for your reply.

 

All the objects are calculated measures... Hence, not available for column formatting 😞

amitchandak
Super User
Super User

@kumsha1 , You have do measure to dimension converiosn. You have create a table like this and display that in matrix

union(
summarize('Table',"Measure","Sales Growth", "ACT",[Sales Growth], "PY",[Sales Growth PY], "FC",[Sales Growth FC]),
summarize('Table',"Measure","Price Growth", "ACT",[Price Growth], "PY",[Price Growth PY], "FC",[Price Growth FC])
)

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.

Top Solution Authors