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
Anonymous
Not applicable

Quarterly and Year sum is giving previous quarter and year sum if the value is empty.

Hi,

 

Need your expert help.

 

I am trying to get the total Quarterly and Yearly which I achieved, however it is giving the data for previous quarter and previous year when the return value is empty for current quarter and year.

 

I used below formulas where Date is coming from calendar table which is connected to fact table with a datekey.

 

Quarterly CMRR = TOTALQTD(SUM('New & Existing'[Total Incremental MRR (converted)]),'Date'[Date])

Yearly CMRR = TOTALYTD(SUM('New & Existing'[Total Incremental MRR (converted)]),'Date'[Date])

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @v-yulgu-msft,

 

This also fixed with the same solution as below:

 

I fixed it by creating a unique Country table and related to the fact table, then I used that country to segment the total.

Alternatively I used column which will identify current month and used it as filter for MTD totals.

View solution in original post

4 REPLIES 4
v-yulgu-msft
Employee
Employee

Hi @Anonymous,

 

Maybe you could wrap the measures with an IF statement.

 

Without detailed sample data, I cannot understand your requirement well. From above expected table, how should we know which row is in current year and quarter?

 

Regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Hi @v-yulgu-msft

 

Thanks for the reply, I am able to fix this issue now 🙂

Hi @Anonymous,

 

Glad to hear that. Would you please share the valid solution so that it can help more users?

 

Regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Hi @v-yulgu-msft,

 

This also fixed with the same solution as below:

 

I fixed it by creating a unique Country table and related to the fact table, then I used that country to segment the total.

Alternatively I used column which will identify current month and used it as filter for MTD totals.

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.