Forum Discussion
Reference different tables when creating a measure
- 3 years ago
Hi,
Create a single column table called Records with only unique Record ID in that table. Create a relationship (Mnay to One and Single) from the RecordID column of the 2 data tables to the RecordID column of the new table. Write these measures and drag the last one to a card visual
Measure1 = calculate(COUNTROWS('sales'),'Sales'['Sales Numbers'], == "1")
Measure2 = COUNTROWS('All Sales')
measure3 = divide([Measure1],[Measure2])
Hope this helps.
Hi,
Create a single column table called Records with only unique Record ID in that table. Create a relationship (Mnay to One and Single) from the RecordID column of the 2 data tables to the RecordID column of the new table. Write these measures and drag the last one to a card visual
Measure1 = calculate(COUNTROWS('sales'),'Sales'['Sales Numbers'], == "1")
Measure2 = COUNTROWS('All Sales')
measure3 = divide([Measure1],[Measure2])
Hope this helps.