A novel porous anionic MOF {[Mg3(ndc)2.5(HCO2)2(H2O)][NH2Me2]·2H2O·DMF} (1) having exchangeable dimethyl amine cations in 1D channels has been synthesized and characterized. Through cation exchange, 1 manifests bimodal functionality, being a turn-off sensor of Cu(II) on one hand, and a selective sensitizer of Eu(III) emitting intense pure red emission on the other.