Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
Hi Expert
I have the following DAX which i write VAR for each M period - how couldi possibly shorten the measure to something managable
VAR M1 =
Calculate([Running Total],
Input[Year] = MonthYear &&
Input[Terms] = "BTMT" &&
Input[BB/FF] = "BB" &&
Input[Time Period No] ] = " &&
Input[BB] = Product &&
Input[M Column] = "M1"
VAR M2 =
Calculate([Running Total],
Input[Year] = MonthYear &&
Input[Terms] = "BTMT" &&
Input[BB/FF] = "BB" &&
Input[Time Period No] ] = " &&
Input[BB] = Product &&
Input[M Column] = "M2"
Return
M1+M2
the issue is i am doing this for all period upto M45 hence the DAX has become nearly 400 lines long.
Solved! Go to Solution.
Hi @Anonymous ,
Please try to use the following measure:
M1+M2 = Calculate([Running Total],
Input[Year] = MonthYear &&
Input[Terms] = "BTMT" &&
Input[BB/FF] = "BB" &&
Input[Time Period No] ] = " &&
Input[BB] = Product &&
Input[M Column] IN{"M1","M2"})
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Best Regards,
Dedmon Dai
Hi Amit - this is not working as i the value for each M value has to end up in the correct Month Column...in my matrix table...
Hi @Anonymous ,
Please try to use the following measure:
M1+M2 = Calculate([Running Total],
Input[Year] = MonthYear &&
Input[Terms] = "BTMT" &&
Input[BB/FF] = "BB" &&
Input[Time Period No] ] = " &&
Input[BB] = Product &&
Input[M Column] IN{"M1","M2"})
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Best Regards,
Dedmon Dai
Hi Dedmon....
Can you kindly have a look at this question please.
https://community.powerbi.com/t5/Desktop/Add-values-Via-a-Measure-to-a-Specific-Date/m-p/1765401
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
88 | |
74 | |
63 | |
48 | |
36 |
User | Count |
---|---|
116 | |
86 | |
80 | |
59 | |
39 |