Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
I need some assistance with trying to rewrite a DAX without the use of CALCULATE:
I am trying to recreate a solution from another post, however I keep running into this error message:
I think it is coming from my Calculate funtion in the DAX to create to the Q122_PF measure. Is there a way to rewrite this and still get the same result?
Solved! Go to Solution.
Hi @Chanise89 ,
Try to modify your measure like below:
Variance select 1 =
SWITCH (
TRUE (),
VALUES ( 'var dropdown #2'[#1] ) = "Q122_Actuals", [Q122_Actuals 2],
VALUES ( 'var dropdown #2'[#1] ) = "Q122_Plan", [Q122_PF 2],
BLANK ()
)
Best Regards,
Adamk Kong
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Chanise89 ,
Try to modify your measure like below:
Variance select 1 =
SWITCH (
TRUE (),
VALUES ( 'var dropdown #2'[#1] ) = "Q122_Actuals", [Q122_Actuals 2],
VALUES ( 'var dropdown #2'[#1] ) = "Q122_Plan", [Q122_PF 2],
BLANK ()
)
Best Regards,
Adamk Kong
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Your error is saying that your measure 'Variance Dropdown 1' has the error...
Either way, try this
Q122_PF =
CALCULATE (
SUM ( 'GL Data'[P_FCST_AMOUNT_W] ),
FILTER ( 'GL Data', 'GL Data'[VCH_QUARTER] = "Q1" && 'GL Data'[N_YEAR] = 2022 )
)
@Syk Variance Dropdown 1 is a table.
I am trying to wirte a measure that will allow me to use Measure names in a slicer (Similar to how Field parameters work but for my use case - field parameters is not the best option)
So ultimately I am trying to create this measure:
The data types for all of these columns are Text, but I believe the actual error is leading back to the mesaure used to create Q122_Actuals
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 51 | |
| 37 | |
| 35 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 70 | |
| 65 | |
| 39 | |
| 33 | |
| 23 |