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
deven11
Frequent Visitor

need help to perform 2024 net wt(100%) - 2023 net wt(100%)/2023 net wt(100%) using matric visuals

deven11_0-1728364163942.png

 

full image below

 

deven11_2-1728364353556.png

 

 

2 ACCEPTED SOLUTIONS

Hi,

Thanks for rajendraongole1's concern about the problem, and i want to offer some more information for user to refer to.

hello @deven11  , you can refer to the following solutions

1.Create a calendar table.

 

Calendar = ADDCOLUMNS(CALENDAR(DATE(2023,1,1),DATE(2024,12,31)),"Year",YEAR([Date]),"Month",MONTH([Date]))

 

and create a 1:n relationship between tables

vxinruzhumsft_1-1728457830721.png

2.Create the following measures.

 

Sum_netwet = SUM(ZIPQ[Net Wt(100%)])
pre_netwt =
IF (
    ISINSCOPE ( 'Calendar'[Month] ),
    CALCULATE (
        [Sum_netwet],
        OFFSET (
            -1,
            ALLSELECTED ( 'Calendar'[Month] ),
            ORDERBY ( 'Calendar'[Month], ASC )
        )
    ),
    CALCULATE (
        CALCULATE (
            [Sum_netwet],
            OFFSET (
                -1,
                ALLSELECTED ( 'Calendar'[Year] ),
                ORDERBY ( 'Calendar'[Year], ASC )
            )
        )
    )
)
_difference = DIVIDE([Sum_netwet]-[pre_netwt],[pre_netwt])

 

 

 

 

 

3.Put the following field to the matrix,

vxinruzhumsft_2-1728457955829.png

Output

vxinruzhumsft_3-1728457979470.png

 

vxinruzhumsft_4-1728458003188.png

 

Best Regards!

Yolo Zhu

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

Ashish_Mathur
Super User
Super User

Hi,

PBI file attached.

Hope this helps.

Ashish_Mathur_0-1728443500756.png

 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

11 REPLIES 11
Ashish_Mathur
Super User
Super User

Hi,

PBI file attached.

Hope this helps.

Ashish_Mathur_0-1728443500756.png

 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

 

HERE I ATTCHED PBIX FILE AS PER MY REQUIREMENT. PLEASE FIND FILTER ON THAT FILE AND AS PER FILTER OF YEAR AND MONTH I NEED GROWTH %

 

PLEASE HELP ME

deven11_0-1728455817909.png

 

I have already shared my solution with you.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
deven11
Frequent Visitor

Hi @deven11 

I offered a solution above,  it is the 7th message, and the solution Ashish_Mathur  offered is the 8th message, you can refer them.

 

Best Regards!

Yolo Zhu

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

Hi,

Thanks for rajendraongole1's concern about the problem, and i want to offer some more information for user to refer to.

hello @deven11  , you can refer to the following solutions

1.Create a calendar table.

 

Calendar = ADDCOLUMNS(CALENDAR(DATE(2023,1,1),DATE(2024,12,31)),"Year",YEAR([Date]),"Month",MONTH([Date]))

 

and create a 1:n relationship between tables

vxinruzhumsft_1-1728457830721.png

2.Create the following measures.

 

Sum_netwet = SUM(ZIPQ[Net Wt(100%)])
pre_netwt =
IF (
    ISINSCOPE ( 'Calendar'[Month] ),
    CALCULATE (
        [Sum_netwet],
        OFFSET (
            -1,
            ALLSELECTED ( 'Calendar'[Month] ),
            ORDERBY ( 'Calendar'[Month], ASC )
        )
    ),
    CALCULATE (
        CALCULATE (
            [Sum_netwet],
            OFFSET (
                -1,
                ALLSELECTED ( 'Calendar'[Year] ),
                ORDERBY ( 'Calendar'[Year], ASC )
            )
        )
    )
)
_difference = DIVIDE([Sum_netwet]-[pre_netwt],[pre_netwt])

 

 

 

 

 

3.Put the following field to the matrix,

vxinruzhumsft_2-1728457955829.png

Output

vxinruzhumsft_3-1728457979470.png

 

vxinruzhumsft_4-1728458003188.png

 

Best Regards!

Yolo Zhu

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

 

 

rajendraongole1
Super User
Super User

Hi @deven11 - your question is not clear, can you please share in detail what is the current value and what is expected?

 

also share pbix file by removing the sensitive data it helps.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





how to share pbix file

want to perform 59342-55647/55647

 

 

deven11_1-1728368824391.png

 

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!

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.