cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
filippoalicicco
Frequent Visitor

DAX help

Good mornig,

I need help for PBI Dax. 

 

I have a table with two colums: the first with the date (from 2017/12 to 2018/09) and the second with amount of accounts opened.

 

I would like to know the sum of account in the same period of 2017 and 2018. Is it possible? I try with DAX SAMEPERIODLASTYEAR but it don't work.

 

Can You Help me?

 

thx

filippo

1 ACCEPTED SOLUTION

Hi @filippoalicicco,

 

I have a demo in hand. Please refer to the attachment and snapshot below.

DAX-help

 

Best Regards,
Dale

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

View solution in original post

4 REPLIES 4
v-jiascu-msft
Microsoft
Microsoft

Hi Filippo,

 

1. The data is from 2017/12 to 2018/09. What could the same period be?

2. What's the granularity? Month or Day?

3. If you try the function SAMEPERIODLASTYEAR, you need a Date table that has continuous dates. 

4. Can you share a sample?

 

 

Best Regards,
Dale

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

1) the same period that i want to analize is : from 2017/01 to 2017/09 to compare from 2018/01 to 2018/09 

2) Granularity in Month

 

 

 

I attach a photo with ma table and i write you an example:

 

Colum "aperture conti correnti" --> sum form from 2017/01 to 2017/09 is 103.448 and sum from 2018/01 to 2018/09 is 86.152 --> percentage difference is -16%.

 

I need a dax that in next month calculates from 2017/01 to 2017/10 and the same period for 2018.

example bi.JPG

 

 

 

Hi @filippoalicicco,

 

I have a demo in hand. Please refer to the attachment and snapshot below.

DAX-help

 

Best Regards,
Dale

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

Now it works!!

thank you so much

 

filippo

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors