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
emveha
Resolver III
Resolver III

Calculate nr of sessions per period

hi all,

 

have a simple table with sessions (just a number) and a date presented like 1-1-2017 and now i want to know the sessions per period. So what i have done is i added a custom column = Year (Date.Year(Date)) and as a result i get 2017 and 2018. How should i create a calculation that will show me the nr of sessions for 2017 and 2018...

Any ideas, thanks

M

1 ACCEPTED SOLUTION
emveha
Resolver III
Resolver III

Hi Lydia,

thanks for your support, appreciate it and need to apologize as  well as i was not clear enough....What i was looking for was a new measure that would presented the number of sessions in 2017 and 2018. In the meantime, I managed to solve the issue like this--> Sessions TY = CALCULATE(SUM('TableXX'[Sessions]);'TableXX'[Year]="2018";'TableXX'[YTD]="YTD") and this was exactly what i was looking for.

Again thanks for support!

M

View solution in original post

3 REPLIES 3
emveha
Resolver III
Resolver III

Hi Lydia,

thanks for your support, appreciate it and need to apologize as  well as i was not clear enough....What i was looking for was a new measure that would presented the number of sessions in 2017 and 2018. In the meantime, I managed to solve the issue like this--> Sessions TY = CALCULATE(SUM('TableXX'[Sessions]);'TableXX'[Year]="2018";'TableXX'[YTD]="YTD") and this was exactly what i was looking for.

Again thanks for support!

M

v-yuezhe-msft
Employee
Employee

 
Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-yuezhe-msft
Employee
Employee

@emveha,

Please check attached PBIX file, if it doesn't meet your requirement, please share sample data of your table and post expected result here.

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.