Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi,
I have a table that I need to calculate the total number of tanks that was active for the day either by dax or calculated column. These tanks are represented by each column and the active state is signified by the value of (1). So, for example, for 15/8/2023 should have 4 active tank since there are 4 column that have the value (1) registered. I've tried to sum up by rows but it was inaccurate as the active state for the tanks was not always aligned.
Any help is much appreciated.
You standardize the data type
Thank you for your reply @thuoc115 but I'm not sure how to do that as I am fairly new to Power BI. But I found another solution to the problem by referring to this post = https://community.fabric.microsoft.com/t5/Desktop/Power-Query-count-columns-with-specific-values/td-... . I unpivot the related column on Power Query and used DISTINCTCOUNT on the attribute (tanks) on the Report View and it display what I wanted properly.
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
69 | |
68 | |
40 | |
29 | |
26 |
User | Count |
---|---|
88 | |
49 | |
45 | |
38 | |
37 |