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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Producing Calculated Table with Distinct/Unique Values w/ Filters

Hello!

 

I'm trying to create a dashboard that produces visuals on YTD manual entries created by the accounting department at my organization. Specifically, I'm trying to produce a new table using the datasets I've pulled in from Excel.

 

My dataset lists out information about all journal entries processed YTD in People Soft with various fields (Cols A to AW). The essential fields/columns include: Journal ID, Accounting Month, User that inputted the entry, a column that indicates whether the user is in the accounting dept or not (indicated through "True" vs. "False" in text format), the dollar value of the entry and lastly, the type of entry (i.e. Manual vs. automated - again indicated in text format). 

 

I've pulled that data into Power BI desktop and am now trying to create a calculated table where the 1st column produces a list of distinct Journal IDs (unique values with no repititions). However the distinct list has to be filtered for journal IDs pertaining to accounting users only and only manual entries. With the filtered and distinct list, I then want to produce a 2nd column next to it that performs a sum of the total dollar values applicable to the Journal IDs in the first column (below is a screenshot of what I need my table to look like): 

 

PJ124_0-1637861432976.png

 

 

I've tried using DAX functions like calculate table but that doesn't work due to my filters being in text format. Functions like filter and summarizecolumns haven't been helpful either! 

 

Any help on this would be greatly appreciated! 

 

Thank you!

 

 

3 REPLIES 3
v-eqin-msft
Community Support
Community Support

Hi @Anonymous ,

 

Sorry I can't get your sample clearly ,it's too vague.

Please refer to this blog to learnHow to provide sample data in the Power BI Forum

 

Best Regards,
Eyelyn Qin

smpa01
Super User
Super User

@Anonymous  can you provide sample data and desired output?

Did I answer your question? Mark my post as a solution!
Proud to be a Super User!
My custom visualization projects
Plotting Live Sound: Viz1
Beautiful News:Viz1, Viz2, Viz3
Visual Capitalist: Working Hrs
Anonymous
Not applicable

Here is a Sample Data Set

PJ124_3-1637862763511.png

 

 

 

And here is what I want the output to look like: 

PJ124_5-1637863106790.png

 

 

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors