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
mahra-in
Helper II
Helper II

Measure for Dividing the No of Suppliers in 2016 by 2017

Hi I needa Measure for Dividing the Distinct No of Suppliers in 2016 by 2017

 

Date           Supplier

5-5-2016    ABB

5-6-2016    Siemens

7-7-2016    ABB

9-8-2016    GE

8-9-2016    ABB

1-1-2017    RTI

1-4-2017    ABB

2-3-2017    GE

6-8-2017    Siemens

7-8-2017    GE

 

In the above No of Distinct Suppliers in 2016 is 3 &

No of Distinct Suppliers in 2017 is 4.

 

Need measure to give soultion for the percentage of increase/decrease of supplier in 2017 compared with 2016

1 ACCEPTED SOLUTION
Zubair_Muhammad
Community Champion
Community Champion

@mahra-in

 

Try this MEASURE. Format it as %age

 

Measure =
DIVIDE (
    CALCULATE (
        DISTINCTCOUNT ( TableName[Supplier] ),
        YEAR ( TableName[Date] ) = 2017
    ),
    CALCULATE (
        DISTINCTCOUNT ( TableName[Supplier] ),
        YEAR ( TableName[Date] ) = 2016
    )
)
    - 1

Regards
Zubair

Please try my custom visuals

View solution in original post

2 REPLIES 2
Zubair_Muhammad
Community Champion
Community Champion

@mahra-in

 

Try this MEASURE. Format it as %age

 

Measure =
DIVIDE (
    CALCULATE (
        DISTINCTCOUNT ( TableName[Supplier] ),
        YEAR ( TableName[Date] ) = 2017
    ),
    CALCULATE (
        DISTINCTCOUNT ( TableName[Supplier] ),
        YEAR ( TableName[Date] ) = 2016
    )
)
    - 1

Regards
Zubair

Please try my custom visuals

Thnak you

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.