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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
romio
New Member

Use a measure as axys (or summarize by a measure)

Hy guys,

 

I'm on a requirement, that I lost one workday on it, but nothing get progress.

I've a dashboard which makes a "% of use" between some goods and the products that use its to be manufactured.

 

The end user must be able to filtrer for some products and compare the % of use, between a lot of goods.

This is to find products that share goods between them.

 

So far, so good, it isn't a complex problem, some DAX and we have the numbers.

But, now, my team would like to COUNT by "% of use" after filter the products.

romio_0-1669206182354.png

This is my original measure:

 

% of use = 
VAR selected_goods =
    COUNTROWS (
        SUMMARIZE (
            T_ESTRUTURA_PAIZAO,
            T_ESTRUTURA_PAIZAO[COD_ITEM_FILHO],
            T_ESTRUTURA_PAIZAO[DESC_ITEM_FILHO],
            T_ESTRUTURA_PAIZAO[DESC_GRUPO],
            T_ESTRUTURA_PAIZAO[COD_ITEM_PAIZAO],
            T_ESTRUTURA_PAIZAO[MASCARA_PAIZAO]
        )
    )
VAR selected_products =
    CALCULATE (
        DISTINCTCOUNT ( T_ESTRUTURA_PAIZAO[MASCARA_PAIZAO] ),
        REMOVEFILTERS ( T_ESTRUTURA_PAIZAO[COD_ITEM_FILHO] )
    )
RETURN
    DIVIDE ( selected_goods, selected_products )

 

My team expect something like it:

romio_1-1669206750695.png

For this, I supposed to use my measure as my axys, but it isn't possible.
Do I have other options to achieve this ?

 

1 REPLY 1
amitchandak
Super User
Super User

@romio , You need

 

Dynamic Segmentation Bucketing Binning
https://community.powerbi.com/t5/Quick-Measures-Gallery/Dynamic-Segmentation-Bucketing-Binning/m-p/1...


Dynamic Segmentation, Bucketing or Binning: https://youtu.be/CuczXPj0N-k

 

As absolute number

 

Dynamic segmentation -Measure to Dimension conversion: https://youtu.be/gzY40NWJpWQ

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.