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

Quarter Starting and Ending Value

Hi Team,

I have one Requirement. I have thw data like This.

 

DateKey     Quarter      Open       Join      Close

20180101     Q1           100         20         120

20180201     Q1            120        30          150

20180301     Q1            150        10          160

20180401     Q2            160        20          180

20180501     Q2            180        20          200

 

But i want to show them to like this

Quarter      Open       Join      Close

   Q1           100         60         160

    Q2          160         40          200

Here Open value is Starting of the Quarter and close value is the closing value of the quarter and join value is sum of the join values in the quarter.

 

 

1 ACCEPTED SOLUTION
v-juanli-msft
Community Support
Community Support

Hi @gvb238

Create measures

Measure-open = CALCULATE(MIN(Table1[Open]),ALLEXCEPT(Table1,Table1[Quarter]))

Measure-join = CALCULATE(SUM(Table1[Join]),ALLEXCEPT(Table1,Table1[Quarter])) 

Measure-close = CALCULATE(MAX(Table1[Close]),ALLEXCEPT(Table1,Table1[Quarter]))

2.png

 

 

Best Regards

Maggie

View solution in original post

2 REPLIES 2
Ashish_Mathur
Super User
Super User

Hi,

 

You may download my PBI file from here.

 

Hope this helps.

 

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
v-juanli-msft
Community Support
Community Support

Hi @gvb238

Create measures

Measure-open = CALCULATE(MIN(Table1[Open]),ALLEXCEPT(Table1,Table1[Quarter]))

Measure-join = CALCULATE(SUM(Table1[Join]),ALLEXCEPT(Table1,Table1[Quarter])) 

Measure-close = CALCULATE(MAX(Table1[Close]),ALLEXCEPT(Table1,Table1[Quarter]))

2.png

 

 

Best Regards

Maggie

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.