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
MiguelSaldana77
Resolver I
Resolver I

Table with different periods on columns

Hi everyone, It´s possible to present the same measure but with different period?

 

The image shows the sales of the month of November (synchronized with the monthly filter) and in the same table show the annual sales, Is it possible?

 

 

ThanksTwo_Different_Periods.jpg

1 ACCEPTED SOLUTION

Hi, I finally made the annual measure

 

Anual Sales = CALCULATE(Sum(H_Viv[Sales]),FILTER(All(Std_Time),Year(Std_Time[Date])= Year(Std_TimDashboard_Sales2.jpge[Date])))

View solution in original post

7 REPLIES 7
v-yuta-msft
Community Support
Community Support

@MiguelSaldana77,

 



Hi everyone, It´s possible to present the same measure but with different period?

 

The image shows the sales of the month of November (synchronized with the monthly filter) and in the same table show the annual sales, Is it possible?

 

 

ThanksTwo_Different_Periods.jpg


Could you share more details about relationship between Actual Month and Actual Year? For example, which kind of DAX formula are you using? In addtion, if possible, could you share the original table, not the cahrt? Mark sure mask the sensitive data.

 

Regards,

Jimmy Tao

MiaZhao
Helper I
Helper I

Hi ,

 

Have you tried to use function YTD() and MTD()?

AlB
Super User
Super User

Hi @MiguelSaldana77

 

Just using an ALL() on the month column should do the trick. Something like 

SUM(Tables1[Sales], ALL(Table1[Month])

Be careful thought with the year. If you show the structure of your data model we could be more precise with the solution

 

 

Thanks @AIB well, the structure is very simple, I have a Fact Table and differents Catalogs for the differents dimensions and I have a Catalogo for the Time.

So, If I use a week filter, I have to do an calculated measure ussing that formula ?

@MiguelSaldana77

 

Hi, create a Basic Measure like SUM(Sales).

 

And after that create measures with the desired period.  Monthly, Anually, etc

 

Regards

 

Victor

 




Lima - Peru

Thanks for your help to everyone

 

 

I was working with the formulas and I got this for the Monthly Measure, but I couldn´t made work the anual measure.

Could anyone help with the annual measure, please.

 

Monthly Sales = CALCULATE(H_Viv[Sum Sales],FILTER(All(Std_Time),MONTH(Std_Time[Date])= MONTH(MAX(Std_Time[Date]))))
 
The annual doesn´t work 
Annual Sales = CALCULATE(H_Viv[Sum Sales],FILTER(All(Std_Time),Year(Std_Time[Date])= Year(MAX(Std_Time[Date]))))Dashboard_Sales.jpg

 

 

 

Hi, I finally made the annual measure

 

Anual Sales = CALCULATE(Sum(H_Viv[Sales]),FILTER(All(Std_Time),Year(Std_Time[Date])= Year(Std_TimDashboard_Sales2.jpge[Date])))

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.