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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
hb0135
Helper III
Helper III

Automatically to display the Current Month week in Visuals

Hello,

We have data in which there is weekwise data and for that we want it display it by current month week to show.
And in this we donot have date column so we can filter it out.
Sample data is shown below
Can you pls help.

Week No Availabilty
189
267
389
456
526
6485
734
878
998
1067
1197
1279
1354
1467
1534
1668
1759
1874
1945
2087
2189
2245
2365
2476
2555
2665
2745
2878
2945
3067
3187
3256
1 ACCEPTED SOLUTION

Hi @hb0135 ,

Thank you for reaching out to the Microsoft Community Forum.

 

Please follow below steps.

1. Created sample table "Table" based on your data. refer below snap.

vdineshya_0-1753448917291.png

 

2.  Created Calculated table "WeekMonthMap". refer snap.

 

vdineshya_1-1753449009853.png

 

3. Created Calculated column "IsCurrentMonth" with below DAX code.

 

IsCurrentMonth =
IF (
    [Month Number] = MONTH(TODAY()),
    1,
    0
)
 
4. Drag the ""IsCurrentMonth"  column into visual filter and set the value as "1". Please refer output snap and attached PBIX file.
 
vdineshya_2-1753449423878.png

 

 

I hope this information helps. Please do let us know if you have any further queries.

 

Regards,

Dinesh

View solution in original post

4 REPLIES 4
hb0135
Helper III
Helper III

Hello  Jihwan_Kim,
Thanks for the respone what i exactly need to automatically to show only July week No i.e Wk 27,28,29,30,31 and then August will come and now only August month week should be shown that change automatically and in this 
Data we only have Week No column and Availibality Column we donot have Date coloumn

hb0135_0-1753439090309.png

Currently it is like this and we want shown below 

hb0135_1-1753439168630.png

Beacasue this are the only week are there in month of July and when next month comes then that will month week will come here.
I have also shown the Dummy Data set sample

Regards,
Atharva 

Hi @hb0135 ,

Thank you for reaching out to the Microsoft Community Forum.

 

Please follow below steps.

1. Created sample table "Table" based on your data. refer below snap.

vdineshya_0-1753448917291.png

 

2.  Created Calculated table "WeekMonthMap". refer snap.

 

vdineshya_1-1753449009853.png

 

3. Created Calculated column "IsCurrentMonth" with below DAX code.

 

IsCurrentMonth =
IF (
    [Month Number] = MONTH(TODAY()),
    1,
    0
)
 
4. Drag the ""IsCurrentMonth"  column into visual filter and set the value as "1". Please refer output snap and attached PBIX file.
 
vdineshya_2-1753449423878.png

 

 

I hope this information helps. Please do let us know if you have any further queries.

 

Regards,

Dinesh

Hello  v-dineshya

Thanks for the help it worked for me.But now the new issue is occur when i want to see perivious week data by clicking on slicet i donot see the data for this all is blank.
How we can see the pervious week data also here.

hb0135_0-1753678377465.png

Regards
Atharva

Jihwan_Kim
Super User
Super User

Hi, I am not sure if I understood your question correctly, but I tried to get current week's data as a result of [expected result measure:]
I tried to create virtual calendar table inside the measure.
Please check the below picture and the attached pbix file.

 

Jihwan_Kim_0-1753438519024.png

 

expected result measure: = 
VAR _datetable =
    ADDCOLUMNS (
        CALENDAR ( DATE ( 2025, 1, 1 ), DATE ( 2025, 12, 31 ) ),
        "@weeknumber", WEEKNUM ( [Date], 1 )
    )
VAR _currentweeknumber =
    MAXX ( FILTER ( _datetable, [Date] = TODAY () ), [@weeknumber] )
RETURN
    CALCULATE ( SUM ( Data[Availabilty] ), Data[Week No] = _currentweeknumber )

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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
Top Kudoed Authors