Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
Hi all - I have a dataset where there can be multiple lines of data, per event (see link below - sample data) but I only want to have the lines of datsa which have an actual dosage in it, rather than just zero. So, in the sample data, you'll see the same event key, but there is often a 'rogue' line of data which has same event key but a zero. This zero IS in the data, but for analysis purposes I want to exclude it as a line of data - only showing the event key line with something in it.
Many thanks all.
Solved! Go to Solution.
You can filter it out within the measure:
CALCULATE (
SUM ( 'table'[dosage] ),
FILTER ( VALUES ( 'table'[dosage] ), 'table'[dosage] <> 0 )
)
You can use the query editor to filter it out
Or exclude using the filter pane
Proud to be a Super User!
You can filter it out within the measure:
CALCULATE (
SUM ( 'table'[dosage] ),
FILTER ( VALUES ( 'table'[dosage] ), 'table'[dosage] <> 0 )
)
You can use the query editor to filter it out
Or exclude using the filter pane
Proud to be a Super User!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
User | Count |
---|---|
140 | |
71 | |
64 | |
52 | |
50 |
User | Count |
---|---|
209 | |
92 | |
64 | |
59 | |
56 |