The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
I created some sample data (files linked below) of something I could use some help on. I would like to create a "Current Period" column, "Previous Period" column, and a "Difference" column. I'd also like a dropdown slicer to filter specifically on year, quarter, or month, and have the "Previous Period" column update accordingly based on the slicer selection.
Furthermore, how do I prevent subtotals from appearing on text columns? As you can see in the screenshot below, I'm getting a text total of "1111" and "Atlanta", but the amount column totals correctly.
.pbix and .xlsx can be found at: Google Drive Link
Solved! Go to Solution.
Hi @Anonymous ,
Two method:
Method 1: Create measures for text columns.
CostCenter Measure =
IF (
ISFILTERED ( 'Employee Expenses'[CCOwnerVP] ),
MAX ( 'Employee Expenses'[CostCenter] )
)
CostCenterDescription Measure =
IF (
ISFILTERED ( 'Employee Expenses'[CCOwnerVP] ),
MAX ( 'Employee Expenses'[CostCenterDescription] )
)
Date Measure =
IF (
ISFILTERED ( 'Employee Expenses'[CCOwnerVP] ),
MAX ( 'Employee Expenses'[Date] )
)
Then replace your text columns with the measures above.
Method 2: use buttons to cover the subtotals not needed.
BTW, .pbix file attached.
Hi @Anonymous ,
Two method:
Method 1: Create measures for text columns.
CostCenter Measure =
IF (
ISFILTERED ( 'Employee Expenses'[CCOwnerVP] ),
MAX ( 'Employee Expenses'[CostCenter] )
)
CostCenterDescription Measure =
IF (
ISFILTERED ( 'Employee Expenses'[CCOwnerVP] ),
MAX ( 'Employee Expenses'[CostCenterDescription] )
)
Date Measure =
IF (
ISFILTERED ( 'Employee Expenses'[CCOwnerVP] ),
MAX ( 'Employee Expenses'[Date] )
)
Then replace your text columns with the measures above.
Method 2: use buttons to cover the subtotals not needed.
BTW, .pbix file attached.
I updated my .pbix file on Google Drive as I realized my slicer needed to be on a Calendar Table with continuous dates. I also created two measures, shown below.