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
Mona00001
New Member

Highlight selected month in the line chart

Hi Everyone, 

 

I am struggling with a measurement to extract value for selected month's revenue so i can show as 2nd photo. Please help

Mona00001_1-1669414026031.png

 

i followed this video illustration and succeeded in showing daily revenue. But tricky part is i dont want to show daily, but monthly revenue and couldnt adjust calculation. 

 

So far, i have created highlight_calendar table which is same as dimcalendar, but has no relationship with main table

 

Mona00001_2-1669414444058.png

 

And then created to measurements: 

Revenue_withoutrelationship = CALCULATE([Total_revenue], TREATAS(VALUES(Highight_calendar[date]), Dimdate[Date])) 
Revenue_highlight = IF(SELECTEDVALUE(Highight_calendar[1stdayofMonth]) = SELECTEDVALUE(Highight_calendar[date]), [Revenue_withoutrelationship])

 

So i can have this: 

Mona00001_3-1669414512187.png

But as shown in the 2nd table, revenue highlight doenst pick  up monthly revenue

4 REPLIES 4
lbendlin
Super User
Super User

Please provide sanitized sample data that fully covers your issue.
https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-...
Please show the expected outcome based on the sample data you provided.

https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523

Can you please check the link? The sharing may need to be set differently.

thanks for letting me know, i made adjustments so this time it should be working 🙂

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.