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.
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])?
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
117 | |
104 | |
77 | |
73 | |
52 |
User | Count |
---|---|
145 | |
109 | |
109 | |
90 | |
64 |