Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi,
Pretty new to Power BI and DAX but I'm having problem calculating a DAX formula getting some information from Microsoft AX 2012. Trying to get the the SUM of all components with certain costgroups to present as a column in this Power BI table, which is the sales a period selected with a slicer.
This SQL does the job when I have found the right "PriceCalcID":
Select SUM(SALESPRICEQTY) from BOMCALCTRANS where PRICECALCID like '058256' and ( COSTGROUPID like 'Mtrl' OR COSTGROUPID like 'SF' )
Trying to this but know I'm missing something. I need first to find the latest date in the selected period.
And for that certain date I need to find the PriceCalcID for the Product No in the above Power BI table.
Solved! Go to Solution.
Hi,
Managed to get a bit further yesterday.
Greated a new table called DM where I filtered posts within a period and categories.
-------------------------------------------------------------------------
Hi @DF8859 ,
Please have a try.
Create a measure.
DM =
VAR _DMLastdate =
MAXX ( ALLSELECTED ( BOMCALATRANS ), BOMCALATRANS[TRANSDATE] )
RETURN
CALCULATE (
SUM ( BOMCALCTRANS[SALESPRICEQTY] ),
FILTER (
ALL ( BOMCALCTRANS ),
( BOMCALCTRANS[COSTGROUPID] = "SF"
|| BOMCALCTRANS[COSTGROUPID] = "Mtrl" )
&& BOMCALATRANS[TRANSDATE] = _DMLastdate
&& BOMCALCTRANS[PRICECALCID] = SELECTEDVALUE ( BOMCALCTRANS[PRICECALCID] )
)
)
How to Get Your Question Answered Quickly
If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .
Best Regards
Community Support Team _ Polly
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi,
Managed to get a bit further yesterday.
Greated a new table called DM where I filtered posts within a period and categories.
-------------------------------------------------------------------------
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
19 | |
7 | |
6 | |
5 | |
4 |
User | Count |
---|---|
26 | |
10 | |
10 | |
9 | |
6 |