Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
I have a column of data that I want a total for but the summarization only gives me First/Last/Count/Count(distinct) and none of those apply.
Can I have the total be a measure I calculate myself?
Solved! Go to Solution.
Thank you. I wasn't aware of the hasonevalue function. It worked perfectly for me.
Thank you. I wasn't aware of the hasonevalue function. It worked perfectly for me.
Hi @jgpbi ,
Please check the data type of your data, if they are text, the summarization will only give you First/Last/Count/Count(distinct).
If you need SUM/MAX/MIN, you need to change the data type to number.
For more details, please refer to:
Data types in Power BI Desktop - Power BI | Microsoft Learn
Work with aggregates (sum, average, and so on) in Power BI - Power BI | Microsoft Learn
Besides, if you just want to replace the value of your own, you could use the DAX Functions:
ISINSCOPE function (DAX) - DAX | Microsoft Learn or HASONEVALUE function (DAX) - DAX | Microsoft Learn
Here is a simple sample:
Original data:
You can replace the 0 with any value you want to display in the row subtotals:
You can replace the 0 with any value you want to display in the column subtotals:
In practical applications, it can be very flexible depending on the needs
Best Regards,
Jianbo Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
83 | |
75 | |
64 | |
39 | |
34 |
User | Count |
---|---|
107 | |
56 | |
52 | |
48 | |
40 |