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
RichelleZach
Frequent Visitor

Month and Week Budget Value

Hi,

I am trying to figure out the Month and Week Budget vs actual.  I am using chiclet slicer with month and week filter.

 

Budget Dates =
VAR BaseCalendar =
CALENDARAUTO (1)
RETURN
GENERATE (
BaseCalendar,
VAR BaseDate = [Date]
VAR YearDate = YEAR ( BaseDate )
VAR MonthNumber = MONTH ( BaseDate )
RETURN ROW (
"Day", BaseDate,
"Year", YearDate,
"Month Number", MonthNumber,
"Month", FORMAT (BaseDate,"mmmm"),
"Year Month", FORMAT (BaseDate, "mmm yy")
))

 

and used this formula for week count

 

Week = CONCATENATE("Week ",RIGHT(CONCATENATE("0",WEEKNUM('Budget Dates'[Date])),2))

 

The month is properly showing the budget amount and actual. However, when I select week no. the budget amount is empty or the table is not showing anything.

I would like to select a week then the budget month value will not move or it will stay as month budget while the actual sales are based on week actual sales.

 

PBIX Budget Month Week with value.jpg

PBIX Budget Month Week without value.jpg

 

Thank you in advance.

2 REPLIES 2
v-xicai
Community Support
Community Support

Hi @RichelleZach ,

 

You may create relationship between your fact table and the calendar table on date field, and change the Cross filter direction from Single to Both, which will take the two tables treated as a single table.

 

If you make some selections in your slicer visuals, and the other visuals that contains related fact table fields return blank, that means there is no matched values with the filtered values.

 

Best Regards,

Amy

 

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

Hi @v-xicai  Amy,

Thank you for your reply. I tried that it did not work.

 

I want to achieve the following using the following data.

 

Actual Sales is based on daily basis

Power BI Actual sales table.jpg

Budget Data is based in per month

Power BI Budget sales table.jpg

Then in the visual if I selected Week, I want the Budget Amount to stay in Monthly Value.

Power BI Visual.jpg

Thanks,

 

RichelleZach

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.