Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
aer98
Frequent Visitor

Combine measures in 1 table filtered by date

Hello,

I want to combine 2 measures in a table and filter them by date.
You will find on the link below the file I am working on and as you can see, the second column (CA_2019_Cumulé) of the matrix displays the cumulative result on each line whereas it should correspond to the 1st column(CA_2018_Cumulé).

Click here to see the file

 

Thanks for your help,

 

 

 

1 ACCEPTED SOLUTION

Create a table Date in Power Bi and Join them with other tables and build the visual.

 

Please see the attached file.

 

Thanks,

Hemanth Thota.

View solution in original post

6 REPLIES 6
hthota
Resolver III
Resolver III

The issue is due to the tables are not joined. It can be resloved by creating the Common Date table and join to that table or append the two table into single table and create the visual.

 

It would help you.

 

Thanks,

Heamanth Thota.

aer98
Frequent Visitor

Thanks for your help.

In fact, one of the tables I use comes directly from an ERP and can't be modified.

So I have 1 table having more than 25000 lines and the other one has only 12, one for each month.

Is there any other option ?

1 Measure.PNG

aer98
Frequent Visitor

Ok, thank you.

Would it be possible to have the PBIX file so that I can see exactly how it works ?

 

Thanks

Hi @aer98 

You may use below measure.Attached sample file for your reference.

CA_2018_Cumulé =
CALCULATE (
    SUM ( 'CA-2018'[Montant] ),
    FILTER (
        ALL ( 'CA-2018' ),
        'CA-2018'[Date] <= MAX ( 'CA-2018'[Date] )
            && YEAR ( 'CA-2018'[Date] ) = 2018
    )
)

Regards,

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

Create a table Date in Power Bi and Join them with other tables and build the visual.

 

Please see the attached file.

 

Thanks,

Hemanth Thota.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.