Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hi All,
Need help with the below scenario.
I have a Spend Measure which is visualised in a card. The measure is calculated from two tables. Freight Summary Table has Into restaurant price and Consolidated Spend has Vol in Cases. Price X Volume = Spend is the formula. Both tables is joined by "Country" field which is set as the slicer. I want the card to be blank until I select a country from the slicer.
Spend Measure = SUMX('Freight Summary','Freight Summary'[Into Restaurant Price]* RELATED('Consolidated Spend'[Vol in Cases]))
Appreciate the help.
Solved! Go to Solution.
@Rubal
Try:
Spend Measure =
IF( HASONEVALUE('Consolidated Spend'[Country]),
SUMX('Freight Summary','Freight Summary'[Into Restaurant Price]* RELATED('Consolidated Spend'[Vol in Cases])),
BLANK()
)
________________________
If my answer was helpful, please consider Accept it as the solution to help the other members find it
Click on the Thumbs-Up icon if you like this reply 🙂
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
@Rubal
Try:
Spend Measure =
IF( HASONEVALUE('Consolidated Spend'[Country]),
SUMX('Freight Summary','Freight Summary'[Into Restaurant Price]* RELATED('Consolidated Spend'[Vol in Cases])),
BLANK()
)
________________________
If my answer was helpful, please consider Accept it as the solution to help the other members find it
Click on the Thumbs-Up icon if you like this reply 🙂
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
@Rubal , Something like this
if(isfiltered(Country[Country]),[Spend Measure], blank())
Hi Amit,
Thanks for the prompt response. Why do we have (Country[Country]). Shouldnt it be (table name[Column])?
User | Count |
---|---|
101 | |
90 | |
78 | |
70 | |
69 |
User | Count |
---|---|
110 | |
96 | |
95 | |
74 | |
71 |