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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
AmeenVanakar
Advocate II
Advocate II

Need help with creating repeat outlet from data universe

Hi,

I need help in creating a matrix table in power BI that looks like the one below. Here is the link to .pbix file Test_Repeat.pbix

 

Universe= all unique outlet

repeat outlet = repeat orders by outlets within each channel

Repeat % = Repeat outlet/universe

 

AmeenVanakar_0-1739352487209.png

 

Thanks.

1 ACCEPTED SOLUTION
shafiz_p
Super User
Super User

Hi @AmeenVanakar  Try below measures:

Universe = 
SUMX(
    VALUES('Sheet1'[Channel]),
    CALCULATE(DISTINCTCOUNT('Sheet1'[Outlet]))
)

 

RepeatOutlet = 
SUMX(
    VALUES('Sheet1'[Channel]),
    CALCULATE(
        DISTINCTCOUNT('Sheet1'[Outlet]),
        FILTER(
            VALUES('Sheet1'[Outlet]),
            CALCULATE(COUNTROWS('Sheet1')) > 1
        )
    )
)

 

RepeatPercentage = DIVIDE([RepeatOutlet], [Universe], 0)

 

Output:

shafiz_p_0-1739355232409.png

Check out the file attached here.

 

 

Hope this helps!!

If this solved your problem, please accept it as a solution and a kudos!!

 

 

Best Regards,

Shahariar Hafiz

View solution in original post

3 REPLIES 3
shafiz_p
Super User
Super User

Hi @AmeenVanakar  Try below measures:

Universe = 
SUMX(
    VALUES('Sheet1'[Channel]),
    CALCULATE(DISTINCTCOUNT('Sheet1'[Outlet]))
)

 

RepeatOutlet = 
SUMX(
    VALUES('Sheet1'[Channel]),
    CALCULATE(
        DISTINCTCOUNT('Sheet1'[Outlet]),
        FILTER(
            VALUES('Sheet1'[Outlet]),
            CALCULATE(COUNTROWS('Sheet1')) > 1
        )
    )
)

 

RepeatPercentage = DIVIDE([RepeatOutlet], [Universe], 0)

 

Output:

shafiz_p_0-1739355232409.png

Check out the file attached here.

 

 

Hope this helps!!

If this solved your problem, please accept it as a solution and a kudos!!

 

 

Best Regards,

Shahariar Hafiz

Thank you for the help @shafiz_p & @bhanu_gautam 

bhanu_gautam
Super User
Super User

@AmeenVanakar Please find the attached file

 

DAX
Universe = DISTINCTCOUNT(Sheet1[Outlet])

RepeatOutlet =
CALCULATE(
    DISTINCTCOUNT(Sheet1[Outlet]),
    FILTER(
        Sheet1,
        COUNTROWS(FILTER(Sheet1, Sheet1[Outlet] = EARLIER(Sheet1[Outlet]))) > 1
    )
)

RepeatPercentage =
DIVIDE([RepeatOutlet], [Universe], 0)



Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors
Top Kudoed Authors