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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
umbria
New Member

Using a Value in Field Parameter in a Dax Command

I'm having a trouble to bring a value from a Field Paramenter to a Dax Command.

 

I want to count the number of "Acct Number" by Geo and want to get the count difference between the selected "scenario"

Column.  Currently, Scenario 1,2,3 are set up as Field Parameter so that based on the selection in a slicer, the Account Count broken out by Black and White changes.

The problamatic part is, I want to calculate the count difference between the selected scenario (dynamically change) and the original value (which is based on "Type" column). Since it is referencing a different column, I've tried with a selectedvalue function but it never works... 

 

Any ideas on how to write DAX queries for the yellow highlighted parts? 

 

 

umbria_0-1711151076411.png

 

2 REPLIES 2
encamped
Frequent Visitor

"Black" and "White" are the values in column "Type".

I want to "count" of the Account Numbers based on these two values first (A). Then calculate the "count" of account numbers based on a selected parameter 1, 2, or 3 (B)  then calculate the variance of these two (A)-(B). 

v-zhengdxu-msft
Community Support
Community Support

Hi @umbria 

 

Could you please share more detailed description of the Variance to original view black? While I've read what you posted over and over again, it's difficult to understand the logical of it.

 

Best Regards

Zhengdong Xu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors