Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
Raj007
Helper III
Helper III

power BI dekstop...detail data ..repeating numeric values...how do we handle this scenario

Hi All, Thanks  a lot for your time, I have this scenario where i get the data in the .csv file and this file is loaded into power BI

I have only 1 table in power BI (everything is in 1 table - meaing all my dimensioins and all my metrics like time duration in mins,  sum of customers impacted etc)  - the data is at the full details level ... for example

A service now ticket can have multiple problems and the problem can have multiple problem task numbers

 

1 service now  ticket - many problem numbers or 1 problem number or there is no problem number at all

1 problem number - many problem task numbers or 1 problem task number or there is no task number at all

 

I have data at the problem task number level ... so the numeric columns/metrics are repeating for each row .. 

what is the best approach to NOT ADD/SUM those so that i can show the high level views like

 

card - showing total impact duration - do not SUM because it will add all values - what is the best approach ?

bar char for department - show all impact duration - again dont sum the duplicates just take the unique

 

thanks a lot for your time

                                          

Date DepartmentTicketNr Problem_NumProblem_Task_NumImpact Start Date   Impact End Date     

Duration

In Mins

# of customers impacted
03/12/21 Marketing IT101P101 PTASK101   2021-03-10 13:47:00:0002021-03-10 14:46:00:00059100
03/12/21 Marketing IT101P101 PTASK101   2021-03-10 13:47:00:0002021-03-10 14:46:00:00059100
03/15/21MarketingIT102P102PTASK1022021-03-12 10:15:00:0002021-03-12 10:45:00:000 3050
03/15/21MarketingIT102P102PTASK1022021-03-12 10:15:00:0002021-03-12 10:45:00:000 3050
03/15/21SalesITM201P201PTASK2012021-03-13 11:10:00:0002021-03-13 11:35:00:000 2520
03/16/21SalesITM201P201PTASK2012021-03-13 11:10:00:0002021-03-13 11:35:00:000 2520
03/16/21SalesITM301P301PTASK3012021-03-14 12:15:00:0002021-03-13 12:50:00:000 35100

                       

                                                         

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@Raj007 
You can create a measure to only sum the distinct duration, check the example:

Vpazhenmsft_0-1628578400287.png

Vpazhenmsft_1-1628578437044.png

 

 

Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

@Raj007 
You can create a measure to only sum the distinct duration, check the example:

Vpazhenmsft_0-1628578400287.png

Vpazhenmsft_1-1628578437044.png

 

 

Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.

Hi, V-pazhen-msft,

Thanks a lot, sorry for the very late response. this is awesome trick using the distinct and sumx

really appreciate your time

Greg_Deckler
Community Champion
Community Champion

@Raj007 Couple ways to approach this. One, use AVERAGE instead of SUM. Two, use DISTINCT('Table') and then do a calculation across it like SUMX, etc. I'm not clear on why the "duplicates" exist to begin with and I'm sure I'm missing something important here, but this is my best guess with the information provided.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.