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
taurius2022
Frequent Visitor

Getting values with 0 only from a table

Hi,

 

I have the following data set:

 

 

 

taurius2022_0-1658399066928.png

 

I want to get only categories, which have 0 kwh for the whole period of time (e.g. category "a").

Is there any option to do so through measure7calculated column/DAX?

 

Thanks.

B

 

 

7 REPLIES 7
James-Harpin
Resolver IV
Resolver IV

SpartaBI
Community Champion
Community Champion

@taurius2022 you can do both. How do you want to present the result?
As a string in a measure? As a filter that will only show these values in a table?
Let me know and I'll write the solution

Hi @SpartaBI ,

 

ideally I would love to have a column which would be summing up energy

a = o

b = 28

c = 0

d = 7

Hi,

Drag Category to the Table visual and write this measure

Measure = sum(Data[Energy])

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
amitchandak
Super User
Super User

@taurius2022 , A new measure

 

calculate(sum(Table[energy]),filter(Table, Table[energy] 0) )

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

hi @amitchandak 

 

thank you !
I tested it and am looking at how I can work with it further.

Best

Anonymous
Not applicable

Hi @taurius2022,

Did the above suggestions help with your scenario? if that is the case, you can consider Kudo or Accept the helpful suggestions to help others who faced similar requirements.

If these also don't help, please share more detailed information to help us clarify your scenario to test.

How to Get Your Question Answered Quickly 

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

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.