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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Typhoon74
Helper I
Helper I

The cost value is to be displayed on a monthly basis based on a start date and a time period

I would like to show cost values month-wise on a matrix or chart based on a start date and duration.

The data I have are as follows

PROJECTQUOTESIDPHASEIDSTARTMONTHENDMONTHQUOTEPRICEPERIODAverageQuotePrice
211950812022-11-012023-01-3139999313333
221950812022-10-172023-04-30150010721430
241950812022-12-012023-01-0155000227500
251950812023-01-012023-02-28125670262835
261950812023-02-012023-02-28500015000
441950812022-10-112022-10-25468014680
451950812022-10-242022-10-275801580
471950812022-12-122023-01-315002250

 

And I am looking for a measure that is showing the AverageQuotePrice month-wise beginning on the STARTMONTH and the following month taking the period into consideration.

 

Example

PROJECTQUOTESIDPHASEIDSTARTMONTHENDMONTHQUOTEPRICEPERIODAverageQuotePrice
211950812022-11-012023-01-3139999313333
221950812022-10-172023-04-30150010721430

 

I would like to see 

PROJECTQUOTEID 21 average value 13333 on Nov. 22, Dec. 22 and Jan. 23 

PROJECTQUOTEID 22 average value 21430 on Oct. 22, Nov. 22, Dec. 22, Jan. 23, Feb. 23, Mar. 23  and Apr. 23

when using the measure on a matrix or chart with a date column or axis

 

Can anyone help me with a measure of getting the result, thanks a lot.

1 ACCEPTED SOLUTION
Typhoon74
Helper I
Helper I
4 REPLIES 4
Typhoon74
Helper I
Helper I

v-henryk-mstf
Community Support
Community Support

Hi @Typhoon74 ,

 

Based on your description, is the result you expect: when a certain id is selected, then the corresponding value from the start date to the end date pair is dynamically displayed on the column? Also you only provide the value corresponding to the average month, how should the value corresponding to each specific month be reflected?
Can you provide the relevant screenshot information and describe it.

vhenrykmstf_0-1666666625817.png
Looking forward to your reply.


Best Regards,
Henry


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

Hi @v-henryk-mstf,
the result I am looking for is to see from the example ID21 and ID22 as per the screenshot below that I prepared manually.

The average value of ID 21 should be displayed for 3 months starting November

The starting month is November and the period is 3 does mean the value on Nov. 22, Dec. 22, Jan. 23

The average value of ID 22 should be displayed for 7 months starting October

The starting month is October and the period is 7 does mean the value on Oct. 22, Nov. 22, Dec. 22, Jan. 23, Feb. 23, Mar. 23, Apr. 23

Does this make sense to you?

 

In a matrix, it should look like this

Typhoon74_2-1666682386855.png

 

On a chart, I am looking for something like this

Typhoon74_3-1666682546908.png

 

 

Hi @v-henryk-mstf do you have any suggestions? 

Helpful resources

Announcements
Sept PBI Carousel

Power BI Monthly Update - September 2024

Check out the September 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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

Top Solution Authors