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
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) )

hi @amitchandak 

 

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

Best

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

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

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.