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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
mkane12
Frequent Visitor

Measure Help

I am trying to create a measure counting any carrier that only shipped one order. 

 

for example:

carrier IDvolume(orders)
carrier1200
carrier21
carrier320
carrier413
carrier51

 

the # from this example would be 2 carriers shipped one time.

 

I'm a little new to power Bi so bear with me. 

 

This is what I did but it just counted all the carriers:

 

One & Done = CALCULATE(DISTINCTCOUNT(McLeodIQ_Operations[Carrier.Carrier ID]),FILTER(McLeodIQ_Operations,McLeodIQ_Operations[Orders]=1))
1 ACCEPTED SOLUTION
DAXian
Frequent Visitor

Hi @mkane12 
First I have assumed that volume is :

Volume = SUM(McLeodIQ_Operations[Orders])


I have created two solutions for you. The first one :

One n Done = CALCULATE(DISTINCTCOUNT(McLeodIQ_Operations[Carrier.Carrier ID]),FILTER(ALLEXCEPT(McLeodIQ_Operations,McLeodIQ_Operations[Carrier.Carrier ID]),[Volume]=1))

 

and the other one :

Only One n Done =
CALCULATE(
    DISTINCTCOUNT(McLeodIQ_Operations[Carrier.Carrier ID]),
    FILTER(
        SUMMARIZE(
            McLeodIQ_Operations,
            McLeodIQ_Operations[Carrier.Carrier ID],
            "TotalVolume", SUM(McLeodIQ_Operations[Orders])
        ),
        [TotalVolume] = 1
    )
)  

 

DAXian_0-1745095272948.png

 

I've tried to replicate your column names btw. on the left, there is no date filter. so there will be 4 distinct count if order id is respected. and blank is returned for 'Only One n Done' since Carrier B has other others in April 2025. 

On the right, we applied a date filter to only consider the whole month on March 2025. and so 1 was found for having a total volume = 1 for the whole month of march.

I hope this solves your problem. let us know if this works!

 

 

 

View solution in original post

12 REPLIES 12
DAXian
Frequent Visitor

Hi @mkane12 
First I have assumed that volume is :

Volume = SUM(McLeodIQ_Operations[Orders])


I have created two solutions for you. The first one :

One n Done = CALCULATE(DISTINCTCOUNT(McLeodIQ_Operations[Carrier.Carrier ID]),FILTER(ALLEXCEPT(McLeodIQ_Operations,McLeodIQ_Operations[Carrier.Carrier ID]),[Volume]=1))

 

and the other one :

Only One n Done =
CALCULATE(
    DISTINCTCOUNT(McLeodIQ_Operations[Carrier.Carrier ID]),
    FILTER(
        SUMMARIZE(
            McLeodIQ_Operations,
            McLeodIQ_Operations[Carrier.Carrier ID],
            "TotalVolume", SUM(McLeodIQ_Operations[Orders])
        ),
        [TotalVolume] = 1
    )
)  

 

DAXian_0-1745095272948.png

 

I've tried to replicate your column names btw. on the left, there is no date filter. so there will be 4 distinct count if order id is respected. and blank is returned for 'Only One n Done' since Carrier B has other others in April 2025. 

On the right, we applied a date filter to only consider the whole month on March 2025. and so 1 was found for having a total volume = 1 for the whole month of march.

I hope this solves your problem. let us know if this works!

 

 

 

Hi @mkane12 ,

If a community member's response addressed your query, please consider marking it as Accepted Answer and click Yes if you found it helpful.

If you have any further questions, feel free to reach out.
Thank you for being a valued member of the Microsoft Fabric Community Forum!

lbendlin
Super User
Super User

you get points for the cool table name, and points deducted for the ampersand.

 

One n Done = countrows(filter(McLeodIQ_Operations,[Orders]=1))

thanks, but unfortunately this did not work. 

Please provide a more detailed explanation. What have you tried and where are you stuck?

I tested the measure on my side and it seemed to work.

the measure itself worked, but it didn't give me the solution I need. I need to count how many carriers had a volume of just 1. Your solution counted a lot more it seems, as the number should be less than what the carrier count is. 

 

i need this counted:

mkane12_0-1744639271620.png

mkane12_1-1744639305737.png

this is not right:

mkane12_2-1744640501961.png

 

 

 

Please provide sample data that fully covers your issue.
Please show the expected outcome based on the sample data you provided.

mkane12_0-1744641296057.png

 

lbendlin_0-1744641977889.png

 

 

it isn't working because it's just counting all the orders 

 

 

Please provide sample data that fully covers your issue.
Please show the expected outcome based on the sample data you provided.

Hi @mkane12 ,

We haven’t heard back from you regarding our previous response and wanted to check if your issue has been resolved.

If it has, please consider clicking “Accept Answer” and “Yes” if you found the response helpful.
If you still have any questions or need further assistance, feel free to let us know — we're happy to help!

Thank you!

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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