The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hi there!
I am somewhat new to DAX and I am running into an issue:
I am using the "Opportunities Table" from the Regional Sales Sample pbix file and I am trying to do the following:
In the above table that I have created, for each Purchasing Process and Sales Stage, I wanted to know the earliest created date.
The DAX that I created for the "Earliest Created Date" was as follows:
Solved! Go to Solution.
Hi @MRUGLADIATOR,
Please try this DAX formula:
SUM Value EarliestDate =
VAR _EarliestDate = [Earliest Created Date]
VAR _Table =
FILTER(
Opportunities,
[Opportunity Created On] = _EarliestDate
)
VAR _Result =
SUMX(
_Table,
Opportunities[Value]
)
RETURN
_Result
The final output should be this:
I'm attaching the pbix file with my solution.
Proud to be a Super User!
Hi @MRUGLADIATOR,
Please try this DAX formula:
SUM Value EarliestDate =
VAR _EarliestDate = [Earliest Created Date]
VAR _Table =
FILTER(
Opportunities,
[Opportunity Created On] = _EarliestDate
)
VAR _Result =
SUMX(
_Table,
Opportunities[Value]
)
RETURN
_Result
The final output should be this:
I'm attaching the pbix file with my solution.
Proud to be a Super User!
User | Count |
---|---|
68 | |
63 | |
59 | |
54 | |
28 |
User | Count |
---|---|
182 | |
81 | |
64 | |
46 | |
38 |