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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
oneMills33
Frequent Visitor

How to get a range of months' separate values

I have four measures originated from each different table and these tables are related with one calendar table.

I want to get values of each months from those measures in specific range selected by the month from the calendar table.

 

The range should be like this;

If I choose Febuary 2024, the range should be January 2024 ~ March 2024.

If I choose August 2024, the range should be January 2024 ~ September 2024.

 

So it's basically, [Start of Year] to [Next Month].


I fulfilled this by making a calculated table, but since there is some capacity issue, I want to try it with just measures.

The ideal visual should be like the first table visual which was made by the calculated table,
but I can only get chosen month and each range's totals with measures like the below one.

2024-02-13 12 57 49.png
the daxes I tried in measures are like these :
VAR Result =
CALCULATE(
Calculation
,ALL(v_dim_calendar),
v_dim_calendar[date]>=DATE(SELECTEDVALUE(v_dim_calendar[year]),1,1),
v_dim_calendar[date]<=EOMONTH(MAX(v_dim_calendar[date]),1))

RETURN
Result

and,

VAR Result =
CALCULATE(
Calculation
,DATESBETWEEN(v_dim_calendar[date],STARTOFYEAR(v_dim_calendar[date]),EOMONTH(MAX(v_dim_calendar[date]),1)))

RETURN
Result

Any help would be so thankful.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @oneMills33 

 

Unfortunaltely, it's not support for power bi to implement this function.

Maybe you can try bookmark:

First of all, I create a set of sample:

vzhengdxumsft_0-1707887905479.png

Then create a slicer, for example:

vzhengdxumsft_1-1707888059294.png

Then add a bookmark in the view, and rename it:

vzhengdxumsft_2-1707888129271.png

Insert > buttons

vzhengdxumsft_4-1707888244910.png

Format > Action > Bookmark

vzhengdxumsft_5-1707888292584.png

Style > Text 

vzhengdxumsft_6-1707888401834.png

The result is as follow:

vzhengdxumsft_7-1707888429072.png

vzhengdxumsft_8-1707888441547.png

 

Best Regards,

Zhengdong Xu

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

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @oneMills33 

 

Unfortunaltely, it's not support for power bi to implement this function.

Maybe you can try bookmark:

First of all, I create a set of sample:

vzhengdxumsft_0-1707887905479.png

Then create a slicer, for example:

vzhengdxumsft_1-1707888059294.png

Then add a bookmark in the view, and rename it:

vzhengdxumsft_2-1707888129271.png

Insert > buttons

vzhengdxumsft_4-1707888244910.png

Format > Action > Bookmark

vzhengdxumsft_5-1707888292584.png

Style > Text 

vzhengdxumsft_6-1707888401834.png

The result is as follow:

vzhengdxumsft_7-1707888429072.png

vzhengdxumsft_8-1707888441547.png

 

Best Regards,

Zhengdong Xu

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

thank you so much for the suggestion but unfortunately the calendar range is so vast book marking is quite impossible rn. but i appreciate for assuring that the problem is not solvable finally lmao!

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.