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
DebbieE
Community Champion
Community Champion

DAX to Support Measure or Column with a filter Where Number <1

I have the following as an example

 

Ref               Person          Stage                Fact

1                   122              1                       0.33

1                    122             2                       0.33

1                   122              3                       0.33

2                   44                1                       1

3                   67                 1                      1

 

I want a measure (or column) That I can drag in to show the Summed Number of Facts where the fact is less that 1. Because if its less that one it means that Person is against the ref more than once.

 

In SQL Id do SELECT SUM(Fact) FROM TABLE  WHERE Fact<1 But I cant quite figure out how to do it in DAX.

 

I tried to add it seperately as a filter but it doesnt seemt to work

1 ACCEPTED SOLUTION
gooranga1
Power Participant
Power Participant

I have attached 2 screenshots below. Not sure if that is what you are looking for?

 

Demo2.PNGDemo1.PNG

View solution in original post

6 REPLIES 6
gooranga1
Power Participant
Power Participant

I have attached 2 screenshots below. Not sure if that is what you are looking for?

 

Demo2.PNGDemo1.PNG

Thanks

 

Ill see what I can do with that

arndtvissing
Frequent Visitor

this is called Binning. you can read more on how to use it here:

 

https://community.powerbi.com/t5/Desktop/Need-help-in-creating-Histogram-chart-in-power-BI/td-p/4827...

 

and if the binning function is not working for you, you can try the SWITCH function like below

 

https://docs.microsoft.com/en-us/power-bi/desktop-grouping-and-binning

Im sorry I dont really understand how to apply those examples to what Im Want to do.

 

For example I want a Card showing Number of None Multiples 2 And Number of Multiples 1 for this example

 


 

@DebbieE I guess you are looking for a sum of first 3 records which will be .99, is that correct?

 

 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

DebbieE
Community Champion
Community Champion

It should sum to 1. Ive just shown as 2 digits. This is a screenshot  DAXInterruptionIssue.jpg

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.