March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi
I have a data set of Location where sometimes there is duplicate data for that location, it want to sum location if there are Utilised of Not utilised (ie count hpw may locations are utilised)
I written a measure to return if utilised or Not (1 or 0)
Solved! Go to Solution.
Thanks for the reply from MFelix , please allow me to provide another insight:
Hi @Garbo62 ,
I created some data:
Here are the steps you can follow:
1. Create measure.
Test =
var _table1=
SUMMARIZE(
ALL('BI_SurveyData1'),[Accordant Suvery No],[TimeStart],"Count",[Utilised Activity Sum])
return
COUNTX(
FILTER(_table1,[Count]>0),[Accordant Suvery No])
2. Result:
If the results above don't meet your expectations, Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data. We can better understand the problem and help you.
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Thanks for the reply from MFelix , please allow me to provide another insight:
Hi @Garbo62 ,
I created some data:
Here are the steps you can follow:
1. Create measure.
Test =
var _table1=
SUMMARIZE(
ALL('BI_SurveyData1'),[Accordant Suvery No],[TimeStart],"Count",[Utilised Activity Sum])
return
COUNTX(
FILTER(_table1,[Count]>0),[Accordant Suvery No])
2. Result:
If the results above don't meet your expectations, Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data. We can better understand the problem and help you.
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi @Garbo62 ,
For this you need to use a SUMX function depending on the level of detail should be something similar to:
SUMX(VALUES(TABLE[Column]), [Utilised Activity Sum])
The Table Column should be replaced by the detail level you want to sum it
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsMarch 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
114 | |
76 | |
57 | |
52 | |
44 |
User | Count |
---|---|
165 | |
116 | |
63 | |
57 | |
50 |