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

Be 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

Reply
tsdick
Resolver I
Resolver I

Create DAX Formula Question

The following 2 MSAccess queries produce a count of models where the equip ID ledger account amount sum is not $0.  I would like to recreate in PBI using DAX but I cannot find the right combinations of DAX functions and/or nesting to filter, sum, group by, and count distinct.  Need some help…

 

Q2 (Using output from Q1 counts by model the number of equip ID’s

SELECT q1.Model, Count(q1.Model) AS CountOfModel

FROM q1

GROUP BY q1.Model;

 

Q1 (aggregates multiple equip ID amounts by ID and model when equip ID amounts sum is not $0

SELECT raw.[Equip ID], raw.Model, Sum(raw.[Amount in transaction currency]) AS [SumOfAmount in transaction currency]

FROM raw

WHERE (((Left([Ledger account],1))=4))

GROUP BY raw.[Equip ID], raw.Model

HAVING (((Sum(raw.[Amount in transaction currency]))<>0));

 

Timothy.**bleep**@zieglercat.com

1 ACCEPTED SOLUTION
ryan_mayu
Super User
Super User

@tsdick 

could you pls provide some sample data and expected output?





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

2 REPLIES 2
ryan_mayu
Super User
Super User

@tsdick 

could you pls provide some sample data and expected output?





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




I have a sample but don't know how to attach an excel file to the reply.  Can I email direct to you?  Thanks for offering to help.

 

Tim

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.